summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-07-29 14:20:16 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-07-29 14:20:16 +0200
commit461c5d2787c06b0f07433616a995567831c2dc44 (patch)
tree46386ec58b74d07ffbbe8181401cb9121ddde301 /src/lib/ecore_x
parent620d0031dec70f06a2bfa004583eae656bfd3c7c (diff)
ecore: xcb: make sure length_name is always initialized
lib/ecore_x/xcb/ecore_xcb_icccm.c: In function ‘ecore_x_icccm_name_class_set’: lib/ecore_x/xcb/ecore_xcb_icccm.c:320:11: warning: ‘length_name’ may be used uninitialized in this function [-Wmaybe-uninitialized] s += length_name + 1; Looking at the code this is indeed possible so better play safe here.
Diffstat (limited to 'src/lib/ecore_x')
-rw-r--r--src/lib/ecore_x/xcb/ecore_xcb_icccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_icccm.c b/src/lib/ecore_x/xcb/ecore_xcb_icccm.c
index 76d721500f..95146741ce 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_icccm.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_icccm.c
@@ -302,7 +302,7 @@ ecore_x_icccm_name_class_set(Ecore_X_Window win,
302 const char *class) 302 const char *class)
303{ 303{
304 char *class_string, *s; 304 char *class_string, *s;
305 int length_name, length_class = 0; 305 int length_name = 0, length_class = 0;
306 306
307 LOGFN(__FILE__, __LINE__, __FUNCTION__); 307 LOGFN(__FILE__, __LINE__, __FUNCTION__);
308 CHECK_XCB_CONN; 308 CHECK_XCB_CONN;