forked from enlightenment/efl
test_config.c: comparing array against 0 is useless. compare the first value instead.
This was spotted by coverity CID 1040027.
This commit is contained in:
parent
5954ce1419
commit
3ce65ada92
|
@ -517,7 +517,7 @@ test_config(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__
|
||||||
|
|
||||||
if (pd)
|
if (pd)
|
||||||
{
|
{
|
||||||
if (pd->available_profiles)
|
if (pd->available_profiles[0])
|
||||||
elm_win_available_profiles_set(win,
|
elm_win_available_profiles_set(win,
|
||||||
pd->available_profiles,
|
pd->available_profiles,
|
||||||
pd->count);
|
pd->count);
|
||||||
|
|
Loading…
Reference in New Issue