Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initialize some pointers that could be freed without being initialized.
[spectrwm.git]
/
spectrwm.c
diff --git
a/spectrwm.c
b/spectrwm.c
index
a47f3b0
..
5ad56a7
100644
(file)
--- 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;
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;
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_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;
xcb_generic_event_t *evt;
xcb_motion_notify_event_t *mne;