projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18ae9b0
)
init: have set_debug() check for NULL optarg
author
Jens Axboe
<axboe@fb.com>
Mon, 7 Dec 2015 17:42:24 +0000
(10:42 -0700)
committer
Jens Axboe
<axboe@fb.com>
Mon, 7 Dec 2015 17:42:24 +0000
(10:42 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c
patch
|
blob
|
blame
|
history
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++) {