diff --git a/ChangeLog b/ChangeLog index 1b526ce59..14e71db90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-01-02 Yoshinori K. Okuji + + From Jeremy Katz: + * stage2/fsys_ext2fs.c (ext2fs_dir): Initialize STR_CHK to shut + up GCC. + * stage2/fsys_minix.c (minix_dir): Likewise. + 2002-12-21 Yoshinori K. Okuji * stage2/asm.S (gateA20): First, try a BIOS call (INT 15H, diff --git a/stage2/fsys_ext2fs.c b/stage2/fsys_ext2fs.c index 78f5b746b..1f272591d 100644 --- a/stage2/fsys_ext2fs.c +++ b/stage2/fsys_ext2fs.c @@ -491,7 +491,7 @@ ext2fs_dir (char *dirname) int group_desc; /* fs pointer to that group */ int desc; /* index within that group */ int ino_blk; /* fs pointer of the inode's information */ - int str_chk; /* used to hold the results of a string compare */ + int str_chk = 0; /* used to hold the results of a string compare */ struct ext2_group_desc *gdp; struct ext2_inode *raw_inode; /* inode info corresponding to current_ino */ diff --git a/stage2/fsys_minix.c b/stage2/fsys_minix.c index 591f25367..5c76796a2 100644 --- a/stage2/fsys_minix.c +++ b/stage2/fsys_minix.c @@ -1,6 +1,6 @@ /* * GRUB -- GRand Unified Bootloader - * Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. + * Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -300,7 +300,7 @@ minix_dir (char *dirname) int updir_ino = current_ino; /* the parent of the current directory */ int ino_blk; /* fs pointer of the inode's info */ - int str_chk; /* used ot hold the results of a string + int str_chk = 0; /* used ot hold the results of a string compare */ struct minix_inode * raw_inode; /* inode info for current_ino */