[coreboot] [flashrom] r577 - trunk
svn at coreboot.org
svn at coreboot.org
Fri Jun 5 19:04:37 CEST 2009
Author: hailfinger
Date: 2009-06-05 19:04:37 +0200 (Fri, 05 Jun 2009)
New Revision: 577
Modified:
trunk/dummyflasher.c
Log:
Fix a bug in dummyflasher.c special case where no type parameter is
given.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>
Modified: trunk/dummyflasher.c
===================================================================
--- trunk/dummyflasher.c 2009-06-05 13:46:17 UTC (rev 576)
+++ trunk/dummyflasher.c 2009-06-05 17:04:37 UTC (rev 577)
@@ -35,7 +35,7 @@
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;
}
More information about the coreboot
mailing list