diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-05 17:04:37 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-05 17:04:37 +0000 |
commit | 945d26a0d7eef8faf46453d5f2717c21b59bafc2 (patch) | |
tree | 0d47525793ba4523f1c12721a24e92ddcf701d5d /dummyflasher.c | |
parent | 2bc020bf295fa84b6137e22766480402a991035d (diff) | |
download | flashrom-945d26a0d7eef8faf46453d5f2717c21b59bafc2.tar.gz flashrom-945d26a0d7eef8faf46453d5f2717c21b59bafc2.tar.bz2 flashrom-945d26a0d7eef8faf46453d5f2717c21b59bafc2.zip |
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>
Diffstat (limited to 'dummyflasher.c')
-rw-r--r-- | dummyflasher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dummyflasher.c b/dummyflasher.c index f64691d8f..784cc55e7 100644 --- a/dummyflasher.c +++ b/dummyflasher.c @@ -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; } |