From 6d577b70896fdbf2a99d675e72121b1b5e78ea8b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 13 Aug 2014 13:51:42 +0200 Subject: [PATCH] include/debug: make masknames optional Signed-off-by: Karel Zak --- include/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/debug.h b/include/debug.h index 1497490b59..65645fe64a 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; -- 2.47.3