diff --git a/src/utils.c b/src/utils.c index 34f7265..ef29cee 100644 --- a/src/utils.c +++ b/src/utils.c @@ -2,6 +2,7 @@ #include "utils.h" #include +#include #include #include #include @@ -134,7 +135,6 @@ char *string_to_path(char *string) gint64 string_to_time(const char *string) { - assert(string); errno = 0; @@ -155,7 +155,7 @@ gint64 string_to_time(const char *string) } // endptr may point to a separating space - while (*endptr == ' ') + while (isspace(*endptr)) endptr++; if (STRN_EQ(endptr, "ms", 2))