aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.de.marchi@gmail.com>2013-01-04 13:47:07 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-04 13:47:07 +0000
commit5e0c91af3c080dec258ea3560432f3e6ad519353 (patch)
tree184bdca121a5ac0e95b34674d23fb5843575a531
parenta4862019591923e5f3965d7286657f71b4adf90a (diff)
downloadenlightenment-5e0c91af3c080dec258ea3560432f3e6ad519353.tar.gz
enlightenment-5e0c91af3c080dec258ea3560432f3e6ad519353.tar.xz
enlightenment-5e0c91af3c080dec258ea3560432f3e6ad519353.zip
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 <lucas.de.marchi@gmail.com> SVN revision: 82177
-rw-r--r--src/modules/fileman/e_mod_main.c1
1 files changed, 0 insertions, 1 deletions
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);