shared/time-util: fix gcc5 warning

CC       src/shared/libsystemd_shared_la-time-util.lo
src/shared/time-util.c: In function 'parse_nsec':
src/shared/time-util.c:789:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
                 if (!*s != 0)
                         ^
This commit is contained in:
Daniel Mack
2015-02-24 13:26:47 +01:00
parent 6ad4a4fc43
commit 8e8933ca0f
+1 -1
View 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;