chiark / gitweb /
Always use errno > 0 to help gcc
[elogind.git] / src / locale / localectl.c
index 9f996dbc9820fa559105f153e6291e7fc30dda07..fc312894c6c20253926a25ab5e5fa164a36bfd58 100644 (file)
@@ -421,7 +421,7 @@ static int add_locales_from_libdir (Set *locales) {
                 errno = 0;
         }
 
-        if (errno != 0) {
+        if (errno > 0) {
                 log_error("Failed to read locale directory: %m");
                 return -errno;
         }