seoz pushed a commit to branch master.

commit b0dd3e6915a2f0751f8704f010b0118a91b4ea01
Author: Daniel Juyung Seo <[email protected]>
Date:   Fri Jul 5 19:18:42 2013 +0900

    test_config.c: comparing array against 0 is useless. compare the first 
value instead.
    
    This was spotted by coverity CID 1040027.
---
 src/bin/test_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/test_config.c b/src/bin/test_config.c
index c9778b2..67c6739 100644
--- a/src/bin/test_config.c
+++ b/src/bin/test_config.c
@@ -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);

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to