diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2014-08-09 17:44:39 +0200 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-08-09 19:54:09 +0200 |
commit | e887ca5a745720e3d35527e4fd4e21b8c0b3b3b9 (patch) | |
tree | ddfccc41cbaa9797ea1bc8afeb6e295403f90647 /util/cbfstool | |
parent | a0a019698d29a869eaf299cadcfda11e331f995f (diff) |
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')
-rw-r--r-- | util/cbfstool/cbfstool.c | 1 |
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; |