Skip to content

Commit a0ce07b

Browse files
committed
fix: initialize hints structure before use
1 parent dc5909d commit a0ce07b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mlx_int_anti_resize_win.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ int mlx_int_anti_resize_win(t_xvar *xvar,Window win,int w,int h)
1515
{
1616
XSizeHints hints;
1717
long toto;
18-
18+
19+
memset(&hints, 0, sizeof(XSizeHints));
1920
XGetWMNormalHints(xvar->display,win,&hints,&toto);
2021
hints.width = w;
2122
hints.height = h;

0 commit comments

Comments
 (0)