]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
skip empty lines in a device map file.
authorokuji <okuji@localhost>
Fri, 27 Oct 2000 10:28:54 +0000 (10:28 +0000)
committerokuji <okuji@localhost>
Fri, 27 Oct 2000 10:28:54 +0000 (10:28 +0000)
ChangeLog
lib/device.c

index 71efa7943dd6170b8596fef819015506eedd531b..0bfc6521c81fce6a38f3de089a80db4bb6f26975 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-27  OKUJI Yoshinori  <okuji@gnu.org>
+
+       * lib/device.c (read_device_map): Don't parse a line, if it is
+       empty. Reported by Holger Bauer <bauer@itsm.uni-stuttgart.de>.
+       
 2000-10-25  Jochen Hoenicke  <jochen@gnu.org>
 
        * stage2/builtins.c (md5crypt_func): Use all bits of currticks ()
index ef993f5690a3fdcd277c8bd3d1eff850ec43e1ae..24c99b3fefce4b760ac7b104d8d02b33159965e9 100644 (file)
@@ -370,6 +370,10 @@ read_device_map (FILE *fp, char **map, const char *map_file)
       /* Skip leading spaces.  */
       while (*ptr && isspace (*ptr))
        ptr++;
+
+      /* Skip empty lines.  */
+      if (! *ptr)
+       continue;
       
       if (*ptr != '(')
        {