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
This commit is contained in:
Lucas De Marchi 2013-01-04 13:47:07 +00:00 committed by Lucas De Marchi
parent a486201959
commit 5e0c91af3c
1 changed files with 0 additions and 1 deletions

View File

@ -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);