diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2019-03-18 15:25:05 -0700 |
---|---|---|
committer | Vadim Bendebury <vbendeb@chromium.org> | 2019-03-18 22:32:38 +0000 |
commit | 38b2b6e589010e73a0cb7d26e04b89eef35aa7f8 (patch) | |
tree | cb6c6b2b332dd93f2a96825b21c7a088bc9d4672 /extra | |
parent | 9728988f8810859c81854456ce7a5851f1d44362 (diff) | |
download | chrome-ec-38b2b6e589010e73a0cb7d26e04b89eef35aa7f8.tar.gz |
gsctool: fix bug in scanning Boolean options
The scan should continue while scanned entries are not empty.
BRANCH=none
BUG=none
TEST='gsctool -f is not reporting error anymore.
Change-Id: Ie8316de1b95b511ed6c2b3f65c4cfbd92822edf8
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1529711
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'extra')
-rw-r--r-- | extra/usb_updater/gsctool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/usb_updater/gsctool.c b/extra/usb_updater/gsctool.c index f93b71de50..72fd7cdd10 100644 --- a/extra/usb_updater/gsctool.c +++ b/extra/usb_updater/gsctool.c @@ -2167,7 +2167,7 @@ static int check_boolean(const struct options_map *omap, char option) *omap->flag = 1; return 1; - } while (!(++omap)->opt); + } while ((++omap)->opt); return 0; } |