diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-09-20 15:42:39 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-09-20 15:42:39 -0400 |
commit | 31ae638cda019e9098127dba7a2f3f150fb65c0c (patch) | |
tree | efd7c9c9496248cc4e7dd051aec1d8deff5ef9f8 | |
parent | ee2efa7303077ce98a745f637e213ba9a0965811 (diff) | |
download | seabios-31ae638cda019e9098127dba7a2f3f150fb65c0c.tar.gz |
Fix uninitialized variable in cbfs menu code.
-rw-r--r-- | src/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -188,7 +188,7 @@ static int menu_show_cbfs(struct ipl_entry_s *ie, int menupos) { int count = 0; - struct cbfs_file *file; + struct cbfs_file *file = NULL; for (;;) { file = cbfs_findprefix("img/", file); if (!file) @@ -229,7 +229,7 @@ interactive_bootmenu() int i; for (i = 0; i < IPL.bevcount; i++) { struct ipl_entry_s *ie = &IPL.bev[i]; - int sc = 1; + int sc; switch (ie->type) { case IPL_TYPE_FLOPPY: sc = menu_show_floppy(ie, menupos); |