From: Karel Zak Date: Wed, 13 Aug 2014 11:51:42 +0000 (+0200) Subject: include/debug: make masknames optional X-Git-Tag: v2.26-rc1~524 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d577b70896fdbf2a99d675e72121b1b5e78ea8b;p=thirdparty%2Futil-linux.git include/debug: make masknames optional Signed-off-by: Karel Zak --- 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;