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:
parent
a486201959
commit
5e0c91af3c
|
@ -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++)
|
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 = e_configure_option_info_new(co, _(name[x - E_GADCON_ORIENT_TOP]), (intptr_t*)(long)x);
|
||||||
oi->current = (*(int*)co->valptr == x);
|
oi->current = (*(int*)co->valptr == x);
|
||||||
ret = eina_list_append(ret, oi);
|
ret = eina_list_append(ret, oi);
|
||||||
|
|
Loading…
Reference in New Issue