check >= to close fd
authorSebastian Dransfeld <sd@tango.flipp.net>
Wed, 9 Feb 2011 17:09:49 +0000 (17:09 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Wed, 9 Feb 2011 17:09:49 +0000 (17:09 +0000)
SVN revision: 56855

legacy/efreet/src/bin/efreet_icon_cache_create.c

index 848473e..a342046 100644 (file)
@@ -993,7 +993,7 @@ on_error_efreet:
     efreet_shutdown();
 
 on_error:
-    if (lockfd > 0) close(lockfd);
+    if (lockfd >= 0) close(lockfd);
 
     while ((path = eina_array_pop(strs)))
         eina_stringshare_del(path);