2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>

* stage2/stage2.c (cmain): Initialize DEFAULT_FILE to an empty
  string. Reported by NATORI Shin <natori@adm.s.u-tokyo.ac.jp>.
This commit is contained in:
okuji 2005-03-19 18:02:52 +00:00
parent f307cbf7c6
commit 2b7a7354d9
3 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/stage2.c (cmain): Initialize DEFAULT_FILE to an empty
string. Reported by NATORI Shin <natori@adm.s.u-tokyo.ac.jp>.
2005-03-15 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/fsys_fat.c (fat_mount): Ignore the 3rd bit of a media

1
THANKS
View file

@ -88,6 +88,7 @@ Michael Hohmuth <hohmuth@innocent.com>
Michael Sullivan <mike@trdlnk.com>
Mike Meyer <mwm@mired.org>
Miles Bader <miles@gnu.org>
NATORI Shin <natori@adm.s.u-tokyo.ac.jp>
Neal H Walfield <neal@walfield.org>
Neelkanth Natu <neelnatu@yahoo.com>
OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>

View file

@ -1,6 +1,6 @@
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2000,2001,2002,2004 Free Software Foundation, Inc.
* Copyright (C) 2000,2001,2002,2004,2005 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
@ -872,6 +872,7 @@ cmain (void)
/* Get a saved default entry if possible. */
saved_entryno = 0;
*default_file = 0;
grub_strncat (default_file, config_file, DEFAULT_FILE_BUFLEN);
for (i = grub_strlen(default_file); i >= 0; i--)
if (default_file[i] == '/')