skip empty lines in a device map file.
This commit is contained in:
parent
b810c311d0
commit
5ac0d65e2e
2 changed files with 9 additions and 0 deletions
|
@ -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 ()
|
||||
|
|
|
@ -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 != '(')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue