From 278b61b90326eb1f2c68f6a50f396edebc687fc0 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Tue, 31 Jul 2007 14:12:08 +0300 Subject: [PATCH] Added NULL check --- src/window.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/window.c b/src/window.c index 6cff0c8..3634950 100644 --- a/src/window.c +++ b/src/window.c @@ -1748,6 +1748,9 @@ updateWindowStruts (CompWindow *w) if (!w->struts) w->struts = malloc (sizeof (CompStruts)); + if (!w->struts) + return FALSE; + *w->struts = new; } else -- 1.5.2.3