aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-05-12 15:46:21 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-05-12 15:46:21 -0700
commit192b8c0509e81e10e35d1bae60bca1b1f41c5331 (patch)
treeb43f0a28205dcd014e08e083e3b9709b8b42b548
parentbaa2717331b8bc864f3975f069ae34c157338490 (diff)
downloadsyslinux-192b8c0509e81e10e35d1bae60bca1b1f41c5331.tar.gz
syslinux-192b8c0509e81e10e35d1bae60bca1b1f41c5331.tar.xz
syslinux-192b8c0509e81e10e35d1bae60bca1b1f41c5331.zip
readconfig.c: avoid uninitialized variable warnings
-Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--com32/menu/readconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
index d4c8848c..c8215a0b 100644
--- a/com32/menu/readconfig.c
+++ b/com32/menu/readconfig.c
@@ -603,9 +603,9 @@ static char *is_fkey(char *cmdstr, int *fkeyno)
static void parse_config_file(FILE * f)
{
char line[MAX_LINE], *p, *ep, ch;
- enum kernel_type type;
- enum message_number msgnr;
- int fkeyno;
+ enum kernel_type type = -1;
+ enum message_number msgnr = -1;
+ int fkeyno = 0;
struct menu *m = current_menu;
while (fgets(line, sizeof line, f)) {