JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
no {} around DNPRINTF.
authorMarco Peereboom <marco@conformal.com>
Sun, 1 Feb 2009 03:04:45 +0000 (03:04 +0000)
committerMarco Peereboom <marco@conformal.com>
Sun, 1 Feb 2009 03:04:45 +0000 (03:04 +0000)
scrotwm.c

index 595b207..b09ba56 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -2029,9 +2029,10 @@ manage_window(Window id)
        if (prop && win->transient == 0) {
                DNPRINTF(SWM_D_PROP, "got property _SWM_WS=%s\n", prop);
                ws_idx = strtonum(prop, 0, 9, &errstr);
-               if (errstr)
+               if (errstr) {
                        DNPRINTF(SWM_D_EVENT, "window idx is %s: %s",
                            errstr, prop);
+               }
                ws = &r->s->ws[ws_idx];
        } else
                ws = r->ws;