diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.h b/src/string.h index 98fe7db40..b3beacb23 100644 --- a/src/string.h +++ b/src/string.h @@ -49,7 +49,7 @@ enum CharSetFilter { void strtolower(char *str); -static inline bool StrEmpty(const char *s) { return s[0] == '\0'; } +static inline bool StrEmpty(const char *s) { return s == NULL || s[0] == '\0'; } /** Get the length of a string, within a limited buffer */ |