summaryrefslogtreecommitdiff
path: root/util/cbfstool/cbfstool.c
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-08-09 17:44:39 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-08-09 19:54:09 +0200
commite887ca5a745720e3d35527e4fd4e21b8c0b3b3b9 (patch)
treeddfccc41cbaa9797ea1bc8afeb6e295403f90647 /util/cbfstool/cbfstool.c
parenta0a019698d29a869eaf299cadcfda11e331f995f (diff)
downloadcoreboot-e887ca5a745720e3d35527e4fd4e21b8c0b3b3b9.tar.xz
cbfstool: fix option parsing
"cbfstool create -B bootblock -s size" (in this order) would break bootblock selection. Change-Id: I9a9f5660827c8bf60dae81b519c6f026f3aaa0f3 Found-by: Coverity Scan Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/6564 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'util/cbfstool/cbfstool.c')
-rw-r--r--util/cbfstool/cbfstool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 73b1cf05ee..f236d8b689 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -671,6 +671,7 @@ int main(int argc, char **argv)
if (tolower(suffix[0])=='m') {
param.size *= 1024 * 1024;
}
+ break;
case 'B':
param.bootblock = optarg;
break;