diff options
author | Anselm R Garbe <anselm@garbe.us> | 2009-06-23 16:29:32 +0100 |
---|---|---|
committer | Anselm R Garbe <anselm@garbe.us> | 2009-06-23 16:29:32 +0100 |
commit | 0d8671a5ad040000541ebaa893582e520c7e33a3 (patch) | |
tree | 960d8b435210097c8ecd5cd43ac2f87f9f86aef5 /dwm.c | |
parent | 38e9b67026003fdce065ec220d2195232c881538 (diff) | |
download | dwm-0d8671a5ad040000541ebaa893582e520c7e33a3.tar.gz |
declare buf only if XINERAMA support is used
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c index e0a6286..896c8a7 100644 --- a/dwm.c +++ b/dwm.c @@ -599,7 +599,6 @@ die(const char *errstr, ...) { void drawbar(Monitor *m) { - char buf[2]; int x; unsigned int i, occ = 0, urg = 0; unsigned long *col; @@ -616,6 +615,7 @@ drawbar(Monitor *m) { dc.x = 0; #ifdef XINERAMA { + char buf[2]; buf[0] = m->screen_number + '0'; buf[1] = '\0'; dc.w = TEXTW(buf); |