include/debug: make masknames optional
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
14ad2353cc
commit
6d577b7089
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue