diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ckutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ckutil.c b/src/ckutil.c index 9bfa139..272f737 100644 --- a/src/ckutil.c +++ b/src/ckutil.c @@ -113,6 +113,9 @@ void str_join_dirname_with_basename(char *ret, const char *dirname, } int str_is_empty(const char *s) { + if (!s) { + return 1; + } while (*s != '\0') { if (!isspace((unsigned char)*s)) { return 0; |