sim: Fix potential use of uninitialized variable
authorDenis Kenzior <denkenz@gmail.com>
Mon, 9 May 2011 04:27:17 +0000 (23:27 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 9 May 2011 04:27:17 +0000 (23:27 -0500)
commitb1f4e981f4935bff1b198a24cf110a6e838e42a9
tree738ec319287880f5e55ffbe3c90865dc8e11c616
parent33515dbab3e2901e4e0c41d49746f55f80a0c6c2
sim: Fix potential use of uninitialized variable

In certain circumstances, when the image has been cached but EFimg has
not been read yet, we might end up accessing an unitialized variable.
Fix this by always failing if EFimg has not been read yet.
src/sim.c