From f7f28f5248653cffc3d8a3b89dcee49c1f5337d0 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 17 Feb 2012 10:57:29 -0600 Subject: [PATCH] fix a real issue of an uninitialized variable, found by clang and we are now clang clean --- spectrwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index a0ad550..b527e91 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -5755,7 +5755,7 @@ manage_window(Window id) Atom *prot = NULL, *pp; unsigned char ws_idx_str[SWM_PROPLEN], *prop = NULL; struct swm_region *r; - long mask; + long mask = 0; const char *errstr; XWindowChanges wc; struct pid_e *p; @@ -5942,7 +5942,7 @@ manage_window(Window id) if (border_me) { bzero(&wc, sizeof wc); wc.border_width = border_width; - mask = CWBorderWidth; + mask |= CWBorderWidth; XConfigureWindow(display, win->id, mask, &wc); } -- 1.7.10.4