chiark / gitweb /
shared/time-util: fix gcc5 warning
[elogind.git] / src / shared / time-util.c
index 947ac1fcfb23075f1abd69119568fe32ebaaad3a..1c36c577c4af36c9255554831161c8e65cb26171 100644 (file)
@@ -786,7 +786,7 @@ int parse_nsec(const char *t, nsec_t *nsec) {
         s = startswith(p, "infinity");
         if (s) {
                 s += strspn(s, WHITESPACE);
-                if (!*s != 0)
+                if (*s != 0)
                         return -EINVAL;
 
                 *nsec = NSEC_INFINITY;