From: Marco Peereboom Date: Fri, 17 Feb 2012 16:57:29 +0000 (-0600) Subject: fix a real issue of an uninitialized variable, found by clang and we are now clang... X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=f7f28f5248653cffc3d8a3b89dcee49c1f5337d0;p=spectrwm.git fix a real issue of an uninitialized variable, found by clang and we are now clang clean --- 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); }