1
0
Fork 0

(svn r11025) -Fix: safeguard StrEmpty from calls with NULL.

release/0.6
rubidium 2007-08-31 20:50:18 +00:00
parent 8c85125fd9
commit c720d9d83a
1 changed files with 1 additions and 1 deletions

View File

@ -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 */