coreboot-kgpe-d16/util/romcc
Patrick Georgi adcad7f046 util/romcc: Don't read 'member' if it might be NULL
The earlier loop exits gracefully iff i == index. In other cases, member
might be NULL, so check that the scan was successful before using its
results.

Change-Id: I818c233d797d82fa819243c4626dd9c4b7de3ac6
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Found-by: Coverity Scan #1129147
Reviewed-on: https://review.coreboot.org/17887
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
2016-12-16 18:45:56 +01:00
..
results
tests
COPYING
Makefile romcc: Remove old test infrastructure, rework Makefile 2016-04-14 19:13:07 +02:00
romcc.1 romcc.1: Point bug reporters to the coreboot ML / bug tracker 2016-05-01 16:29:09 +02:00
romcc.c util/romcc: Don't read 'member' if it might be NULL 2016-12-16 18:45:56 +01:00
test.sh romcc: Remove old test infrastructure, rework Makefile 2016-04-14 19:13:07 +02:00