Skip to content

Commit

Permalink
initialize hud_timestr[], valgrind complains
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Jun 18, 2024
1 parent bfabf72 commit 80e7fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hu_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ static void HU_widget_build_monsec(void)

static void HU_widget_build_sttime(void)
{
char hud_timestr[HU_MAXLINELENGTH/2];
char hud_timestr[HU_MAXLINELENGTH/2] = {0};
int offset = 0;

if ((hud_level_time & HUD_WIDGET_HUD && !automapactive) ||
Expand Down

0 comments on commit 80e7fa3

Please sign in to comment.