Skip to content

Commit

Permalink
fix: Free-on-stack caused segfault with prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcheung committed Nov 30, 2023
1 parent cbbe672 commit 307678b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ _print_xml_header (metarecord meta)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");

if (meta.total_entry == 0)
ever_existed = "";
ever_existed = g_strdup("");
else
ever_existed = g_strdup_printf (
" ever_existed=\"%" G_GUINT32_FORMAT "\"", meta.total_entry);
Expand Down

0 comments on commit 307678b

Please sign in to comment.