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:
Daniel Juyung Seo 2013-07-05 19:18:42 +09:00
parent 5954ce1419
commit 3ce65ada92
1 changed files with 1 additions and 1 deletions

View File

@ -517,7 +517,7 @@ test_config(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__
if (pd)
{
if (pd->available_profiles)
if (pd->available_profiles[0])
elm_win_available_profiles_set(win,
pd->available_profiles,
pd->count);