efreet: unsigned int cannot be compared to less than zero.
authorSubodh Kumar <s7158.kumar@samsung.com>
Fri, 6 Oct 2017 16:53:15 +0000 (09:53 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 6 Oct 2017 16:53:17 +0000 (09:53 -0700)
Summary:
Wrong camparision with less than zero for unsigned integer.
@fix

Test Plan: NA

Reviewers: raster, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

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

index 3197c97..7096ed3 100644 (file)
@@ -413,7 +413,7 @@ shutdown_ecore:
 EAPI int
 efreet_mime_shutdown(void)
 {
-   if (_efreet_mime_init_count <= 0)
+   if (_efreet_mime_init_count == 0)
      {
         EINA_LOG_ERR("Init count not greater than 0 in shutdown.");
         return 0;