diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-10-21 15:35:11 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-10-21 15:35:11 +0300 |
commit | 6169275c8b318f99672fca00b48d61680ef91804 (patch) | |
tree | cc49c535074f09592b90dc196d7fcbfcc6662152 /src/ckutil.c | |
parent | 774d8047e0f0ac0824a81b176cec761aac1e62d7 (diff) | |
download | ck-6169275c8b318f99672fca00b48d61680ef91804.tar.gz ck-6169275c8b318f99672fca00b48d61680ef91804.tar.bz2 ck-6169275c8b318f99672fca00b48d61680ef91804.zip |
Fix crash when $EDITOR is not set
Diffstat (limited to 'src/ckutil.c')
-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; |