summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2009-11-16 14:50:43 +0800
committerSam Spilsbury <smspillaz@gmail.com>2009-11-16 14:50:43 +0800
commitbd4277475358ab99338db23b3203f3970961352a (patch)
treeb8dd317f80d28d03d1b7604747f9926bf6af4a8c
parentd8cb1e7c4591aa160c8da28d2e9504f47b239a44 (diff)
downloadzcomp-bd4277475358ab99338db23b3203f3970961352a.tar.gz
zcomp-bd4277475358ab99338db23b3203f3970961352a.tar.bz2
Check variables in the correct order to shut up valgrind
-rw-r--r--plugins/decor/src/decor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/decor/src/decor.cpp b/plugins/decor/src/decor.cpp
index e83fda6..f7b2237 100644
--- a/plugins/decor/src/decor.cpp
+++ b/plugins/decor/src/decor.cpp
@@ -1395,7 +1395,7 @@ DecorScreen::handleEvent (XEvent *event)
XShapeGetRectangles (screen->dpy (),
dw->inputFrame, ShapeInput,
&n, &order);
- if (!n || !shapeRects)
+ if (!shapeRects || !n)
break;
for (int i = 0; i < n; i++)