From 2682657b83f78de7e9b028ef3c1b08f381fee0d9 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine Date: Sat, 26 Mar 2011 17:04:07 +0900 Subject: Fix unintialized variable for the number of icons --- ewmh/ewmh.c.m4 | 1 + 1 file changed, 1 insertion(+) 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), -- cgit v1.2.3