Skip to content

Commit

Permalink
md_is_link_label: Fix warning about potentially uninitialized variabl…
Browse files Browse the repository at this point in the history
…e...

... when build with gcc 13.2.0 in release build.
  • Loading branch information
mity committed Feb 1, 2024
1 parent f37a89f commit 30945d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/md4c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 30945d8

Please sign in to comment.