diff options
author | Karel Zak | 2014-08-13 13:51:42 +0200 |
---|---|---|
committer | Karel Zak | 2014-08-13 13:51:42 +0200 |
commit | 6d577b70896fdbf2a99d675e72121b1b5e78ea8b (patch) | |
tree | fc12b4554b6d3d386566e7d4d90bee5e4a5e2dcb /include/debug.h | |
parent | libs/debug: accept human readable names for _DEBUG= (diff) | |
download | kernel-qcow2-util-linux-6d577b70896fdbf2a99d675e72121b1b5e78ea8b.tar.gz kernel-qcow2-util-linux-6d577b70896fdbf2a99d675e72121b1b5e78ea8b.tar.xz kernel-qcow2-util-linux-6d577b70896fdbf2a99d675e72121b1b5e78ea8b.zip |
include/debug: make masknames optional
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/debug.h')
-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; |