diff options
-rw-r--r-- | include/debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/debug.h b/include/debug.h index 1497490b5..65645fe64 100644 --- a/include/debug.h +++ b/include/debug.h @@ -93,7 +93,7 @@ static inline int parse_envmask(const struct dbg_mask const flagnames[], res = strtoul(mask, &ptr, 0); /* perhaps it's a comma-separated string? */ - if (*ptr != '\0') { + if (*ptr != '\0' && flagnames) { char *msbuf, *ms, *name; res = 0; |