Skip to content

Commit

Permalink
Fixed segfault on NULL size parametor for updatesizehints() (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerjenigeUberMensch authored Aug 7, 2024
1 parent 0ef69ab commit 5933986
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,9 @@ updatemotifhints(Client *c, XCBWindowProperty *motifprop)
void
updatesizehints(Client *c, XCBSizeHints *size)
{
if(!size)
{ return;
}
const int UNINITIALIZED = 0;
i32 basew = UNINITIALIZED;
i32 baseh = UNINITIALIZED;
Expand Down

0 comments on commit 5933986

Please sign in to comment.