From 417c9ef016f696666123beba0973bf544002f88a Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Mon, 31 Dec 2012 09:54:43 +0800 Subject: [PATCH] Initialize some pointers that could be freed without being initialized. --- spectrwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index a47f3b0..5ad56a7 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -5311,7 +5311,7 @@ resize(struct ws_win *win, union arg *args) int top = 0, left = 0, resizing; int dx, dy; xcb_cursor_t cursor; - xcb_query_pointer_reply_t *xpr; + xcb_query_pointer_reply_t *xpr = NULL; xcb_generic_event_t *evt; xcb_motion_notify_event_t *mne; @@ -5509,7 +5509,7 @@ move(struct ws_win *win, union arg *args) xcb_timestamp_t timestamp = 0; int move_stp = 0, moving; struct swm_region *r = NULL; - xcb_query_pointer_reply_t *qpr; + xcb_query_pointer_reply_t *qpr = NULL; xcb_generic_event_t *evt; xcb_motion_notify_event_t *mne; -- 1.7.10.4