]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2003-01-02 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Wed, 1 Jan 2003 15:13:13 +0000 (15:13 +0000)
committerokuji <okuji@localhost>
Wed, 1 Jan 2003 15:13:13 +0000 (15:13 +0000)
From Jeremy Katz:
* stage2/fsys_ext2fs.c (ext2fs_dir): Initialize STR_CHK to shut
up GCC.
* stage2/fsys_minix.c (minix_dir): Likewise.

ChangeLog
stage2/fsys_ext2fs.c
stage2/fsys_minix.c

index 1b526ce5904dde253003319c25aeceb8335a33d9..14e71db907a874c2f62b345f56f9e0d12d6f086a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-01-02  Yoshinori K. Okuji  <okuji@enbug.org>
+
+       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  <okuji@enbug.org>
 
        * stage2/asm.S (gateA20): First, try a BIOS call (INT 15H,
index 78f5b746b68386c21acfefaceab8155163149ab6..1f272591d7cfd5429bf96adbd5868f3f313df5eb 100644 (file)
@@ -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 */
 
index 591f2536744577456cbb3f3a93bf4ba329ca627b..5c76796a21ed098faa0dc47091647c7e8c41ed78 100644 (file)
@@ -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 */