mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
Fix a bug in dummyflasher.c special case where no type parameter is given
Corresponding to flashrom svn r577. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
parent
2bc020bf29
commit
945d26a0d7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user