From: Kevin O'Connor Date: Sun, 13 Dec 2009 16:19:01 +0000 (-0500) Subject: Fix use before free in boot_cbfs (boot.c). X-Git-Tag: rel-0.5.0~9 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2edace134c323e47c3ad23f4635deb3d14a556b3;p=seabios.git Fix use before free in boot_cbfs (boot.c). --- diff --git a/src/boot.c b/src/boot.c index d80eae4..05de715 100644 --- a/src/boot.c +++ b/src/boot.c @@ -422,7 +422,7 @@ boot_cbfs(struct ipl_entry_s *ie) if (! CONFIG_COREBOOT_FLASH) return; int count = ie->subchoice; - struct cbfs_file *file; + struct cbfs_file *file = NULL; for (;;) { file = cbfs_findprefix("img/", file); if (!file)