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 <[email protected]>
Acked-by: Uwe Hermann <[email protected]>


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


-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to