summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index 5113a6b..0eb502d 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -537,6 +537,8 @@ int main(int argc, char *argv[])
programmer = PROGRAMMER_INTERNAL;
} else if (strncmp(optarg, "dummy", 5) == 0) {
programmer = PROGRAMMER_DUMMY;
+ if (optarg[5] == '=')
+ dummytype = strdup(optarg + 6);
} else if (strncmp(optarg, "nic3com", 7) == 0) {
programmer = PROGRAMMER_NIC3COM;
if (optarg[7] == '=')
OpenPOWER on IntegriCloud