From f7a3ef3b3d929c5efb3a341833b1b976ecbb18d5 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Wed, 25 Jan 2012 13:58:04 +0100 Subject: [PATCH] Fix wmfs_current_tag recovering --- src/wmfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wmfs.c b/src/wmfs.c index 3c5f405..290b8fc 100644 --- a/src/wmfs.c +++ b/src/wmfs.c @@ -202,7 +202,7 @@ wmfs_scan(void) int i, n, rf, nscreen = 0; int tag = -1, screen = -1, flags = -1; unsigned long ir, il; - long *ret = NULL, *tret; + long *ret = NULL, *tret = NULL; bool getg = false; XWindowAttributes wa; Window usl, usl2, *w = NULL, tm, focus; @@ -216,7 +216,7 @@ wmfs_scan(void) if(XGetWindowProperty(W->dpy, W->root, W->net_atom[wmfs_current_tag], 0, 32, False, XA_CARDINAL, &rt, &rf, &ir, &il, (unsigned char**)&tret) - == Success && ret) + == Success && tret) { nscreen = (int)ir; }