eet: wrong comparision to less than zero with unsigned integer.
authorSubodh Kumar <s7158.kumar@samsung.com>
Fri, 6 Oct 2017 16:51:13 +0000 (09:51 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 6 Oct 2017 16:51:19 +0000 (09:51 -0700)
Summary:
Unsigned interger should not be compared to less than zero.
@fix

Test Plan: Na

Reviewers: cedric

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D5264

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/eet/eet_lib.c

index 99cd033..58841e5 100644 (file)
@@ -1159,7 +1159,7 @@ eet_internal_read1(Eet_File *ef)
           }
 
         /* invalid name_size */
-        if (eet_test_close(name_size <= 0, ef))
+        if (eet_test_close(name_size == 0, ef))
           {
              eet_file_node_mp_free(efn);
              return NULL;