]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/debug: make masknames optional
authorKarel Zak <kzak@redhat.com>
Wed, 13 Aug 2014 11:51:42 +0000 (13:51 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 13 Aug 2014 11:51:42 +0000 (13:51 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/debug.h

index 1497490b59d65331591a65b890339e2736a1e679..65645fe64afed254e63de5239240f774327f5e59 100644 (file)
@@ -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;