diff options
Diffstat (limited to 'src/shared/time-util.c')
-rw-r--r-- | src/shared/time-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/time-util.c b/src/shared/time-util.c index e192d5ef58..0c6deb66f4 100644 --- a/src/shared/time-util.c +++ b/src/shared/time-util.c @@ -547,7 +547,7 @@ int parse_usec(const char *t, usec_t *usec) { errno = 0; l = strtoll(p, &e, 10); - if (errno != 0) + if (errno > 0) return -errno; if (l < 0) @@ -627,7 +627,7 @@ int parse_nsec(const char *t, nsec_t *nsec) { errno = 0; l = strtoll(p, &e, 10); - if (errno != 0) + if (errno > 0) return -errno; if (l < 0) |