mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 02:59:10 +00:00
(svn r11025) -Fix: safeguard StrEmpty from calls with NULL.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user