From 30945d80f89bb36c15d96c5cba6bdf0b0783fc1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mit=C3=A1=C5=A1?= Date: Thu, 1 Feb 2024 22:16:22 +0100 Subject: [PATCH] md_is_link_label: Fix warning about potentially uninitialized variable... ... when build with gcc 13.2.0 in release build. --- src/md4c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/md4c.c b/src/md4c.c index cb44e3d3..30388632 100644 --- a/src/md4c.c +++ b/src/md4c.c @@ -1936,6 +1936,8 @@ md_is_link_label(MD_CTX* ctx, const MD_LINE* lines, MD_SIZE n_lines, OFF beg, MD_SIZE line_index = 0; int len = 0; + *p_beg_line_index = 0; + if(CH(off) != _T('[')) return FALSE; off++;