projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
init: have set_debug() check for NULL optarg
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 353cc2b1743f945d2ab23c2ffaad35fe290344c7..0100da213a2420db2487b24979895b4c68468455 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-1899,6
+1899,9
@@
static int set_debug(const char *string)
char *opt;
int i;
+ if (!string)
+ return 0;
+
if (!strcmp(string, "?") || !strcmp(string, "help")) {
log_info("fio: dumping debug options:");
for (i = 0; debug_levels[i].name; i++) {