diff options
author | Arnaud Fontaine <arnau@debian.org> | 2011-03-26 17:04:07 +0900 |
---|---|---|
committer | Arnaud Fontaine <arnau@debian.org> | 2011-03-26 17:04:07 +0900 |
commit | 2682657b83f78de7e9b028ef3c1b08f381fee0d9 (patch) | |
tree | 16c10de50de4602be760b1869047a74aa9975ca2 /ewmh | |
parent | f5a0b136bc3aa8c12eea9dd149f43e8eab77a9f4 (diff) |
Fix unintialized variable for the number of icons
Diffstat (limited to 'ewmh')
-rw-r--r-- | ewmh/ewmh.c.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ewmh/ewmh.c.m4 b/ewmh/ewmh.c.m4 index 6f90814..42c419f 100644 --- a/ewmh/ewmh.c.m4 +++ b/ewmh/ewmh.c.m4 @@ -1151,6 +1151,7 @@ xcb_ewmh_get_wm_icon_from_reply(xcb_ewmh_get_wm_icon_reply_t *wm_icon, uint32_t *r_value = (uint32_t *) xcb_get_property_value(r); /* Find the number of icons in the reply. */ + wm_icon->num_icons = 0; while(r_value_len > (sizeof(uint32_t) * 2) && r_value && r_value[0] && r_value[1]) { /* Check that the property is as long as it should be (in bytes), |