aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ckutil.c')
-rw-r--r--src/ckutil.c3
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;