Commit 945d26a0 authored by Carl-Daniel Hailfinger's avatar Carl-Daniel Hailfinger
Browse files

Fix a bug in dummyflasher.c special case where no type parameter is given


Corresponding to flashrom svn r577.
Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
parent 2bc020bf
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment