diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2022-03-01 17:18:00 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-03-09 14:02:21 +0000 |
commit | 4df5af87bea4761a35415caab7f85658ee0d0ea1 (patch) | |
tree | cab7afa7ccbaa54b8278ceec4d7819d1296837c8 /src/console/Kconfig | |
parent | 0e545b252da4bf0f017b29572cfc4e2d80db313b (diff) |
amdfwtool: Clear struct match before regular expression matching
If it is not cleared and the number of strings is fewer than last
iteration, the match[3] will keep the last value, which actually
should be empty.
Add assert to make sure the level is a legal value.
BUG=b:222038278
Change-Id: If14e0923fbb1648d83784eb5dc1411c93227db5a
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62482
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/console/Kconfig')
0 files changed, 0 insertions, 0 deletions