Skip to content

Instantly share code, notes, and snippets.

@ThomasAdam
Created August 12, 2019 13:28
Show Gist options
  • Save ThomasAdam/5abd29928cd93c14fee155b5bcbd1e32 to your computer and use it in GitHub Desktop.
Save ThomasAdam/5abd29928cd93c14fee155b5bcbd1e32 to your computer and use it in GitHub Desktop.
diff --git a/fvwm/conditional.c b/fvwm/conditional.c
index 1f823d1c..4cd6aa45 100644
--- a/fvwm/conditional.c
+++ b/fvwm/conditional.c
@@ -1608,6 +1608,8 @@ void CMD_All(F_CMD_ARGS)
{
num++;
}
+ if (num == 0)
+ return;
g = xmalloc(num * sizeof(FvwmWindow *));
num = 0;
if (!use_stack)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment