Skip to content

Commit

Permalink
DisplayPosition: fix segfault
Browse files Browse the repository at this point in the history
Zero-out fstr so that the default values are initialised, regardless of
any user configuration.
  • Loading branch information
ThomasAdam committed Nov 28, 2021
1 parent a2a0ac3 commit 613c890
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fvwm/move_resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,8 @@ static void display_string(Bool Init, char *str)
int offset;
FlocaleWinString fstr;

memset(&fstr, 0, sizeof(fstr));

if (Scr.SizeWindow.cset >= 0)
{
fstr.colorset = &Colorset[Scr.SizeWindow.cset];
Expand Down

0 comments on commit 613c890

Please sign in to comment.