mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
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:
1 parent
f307cbf7c6
commit
2b7a7354d9
3 files changed
+8
-1
No files matched your search
+2
-1
@@ -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] == '/')
|
||||
|
||||
Reference in new issue
Block a user