From 5933986e824273125eb54acc662a9e3e775cca17 Mon Sep 17 00:00:00 2001 From: Joseph <119084558+DerjenigeUberMensch@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:18:31 +0000 Subject: [PATCH] Fixed segfault on NULL size parametor for updatesizehints() (#391) --- src/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client.c b/src/client.c index 13e90e2..2df1877 100644 --- a/src/client.c +++ b/src/client.c @@ -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;