diff options
-rw-r--r-- | dummyflasher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dummyflasher.c b/dummyflasher.c index f64691d..784cc55 100644 --- a/dummyflasher.c +++ b/dummyflasher.c @@ -35,7 +35,7 @@ int dummy_init(void) printf_debug("%s\n", __func__); /* "all" is equivalent to specifying no type. */ - if (!strcmp(dummytype, "all")) { + if (dummytype && (!strcmp(dummytype, "all"))) { free(dummytype); dummytype = NULL; } |