]> code.delx.au - spectrwm/commitdiff
Initialize some pointers that could be freed without being initialized.
authorReginald Kennedy <rk@rejii.com>
Mon, 31 Dec 2012 01:54:43 +0000 (09:54 +0800)
committerReginald Kennedy <rk@rejii.com>
Mon, 31 Dec 2012 01:57:06 +0000 (09:57 +0800)
spectrwm.c

index a47f3b0e496e4c2cb29ae72cc674dd048bfbc709..5ad56a7e6a47987da979dc62ec8f4b4f02123d51 100644 (file)
@@ -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;