summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Young <rcxdude@gmail.com>2008-09-14 15:10:27 +0100
committerDouglas Young <rcxdude@gmail.com>2008-09-14 15:10:27 +0100
commit9e1d4e2f9d0c0dc25b6a1f5748d02e3e61c53e37 (patch)
tree361b0f6c29eb33050a3d24be0f31d656a4ef9501
parent0a43af785048a90b7b1a41d4ea062653a53a4061 (diff)
downloaddodge-9e1d4e2f9d0c0dc25b6a1f5748d02e3e61c53e37.tar.gz
dodge-9e1d4e2f9d0c0dc25b6a1f5748d02e3e61c53e37.tar.bz2
stop crash when *w is null
-rw-r--r--dodge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dodge.c b/dodge.c
index 5bc3e9a..7470389 100644
--- a/dodge.c
+++ b/dodge.c
@@ -129,6 +129,7 @@ typedef struct _DodgeScreen
static int
dodgestep (CompWindow *w, int ms, int away)
{
+ if (!w) return 0;
DODGE_WINDOW (w);
DODGE_SCREEN (w->screen);
int dx; /* x distance from pointer */