From 5e0c91af3c080dec258ea3560432f3e6ad519353 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 4 Jan 2013 13:47:07 +0000 Subject: [PATCH] e: fix bogus check on array, above its bounds fileman/e_mod_main.c: In function '_cfg_toolbar_orient_cb_info_cb': fileman/e_mod_main.c:272:18: warning: array subscript is above array bounds [-Warray-bounds] Hopefully stack is not NULL there, that's why nobody caught this bug. Patch by: Lucas De Marchi SVN revision: 82177 --- src/modules/fileman/e_mod_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/fileman/e_mod_main.c b/src/modules/fileman/e_mod_main.c index 9b7024dcf..d36bd8caf 100644 --- a/src/modules/fileman/e_mod_main.c +++ b/src/modules/fileman/e_mod_main.c @@ -272,7 +272,6 @@ _cfg_toolbar_orient_cb_info_cb(E_Configure_Option *co) for (x = E_GADCON_ORIENT_TOP; x <= E_GADCON_ORIENT_BOTTOM; x++) { - if (!name[x]) continue; oi = e_configure_option_info_new(co, _(name[x - E_GADCON_ORIENT_TOP]), (intptr_t*)(long)x); oi->current = (*(int*)co->valptr == x); ret = eina_list_append(ret, oi);