1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 07:02:34 +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:
Carl-Daniel Hailfinger 2009-06-05 17:04:37 +00:00
parent 2bc020bf29
commit 945d26a0d7

View File

@ -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;
}