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>
|
2000-10-25 Jochen Hoenicke <jochen@gnu.org>
|
||||||
|
|
||||||
* stage2/builtins.c (md5crypt_func): Use all bits of currticks ()
|
* stage2/builtins.c (md5crypt_func): Use all bits of currticks ()
|
||||||
|
|
|
@ -371,6 +371,10 @@ read_device_map (FILE *fp, char **map, const char *map_file)
|
||||||
while (*ptr && isspace (*ptr))
|
while (*ptr && isspace (*ptr))
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
||||||
|
/* Skip empty lines. */
|
||||||
|
if (! *ptr)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (*ptr != '(')
|
if (*ptr != '(')
|
||||||
{
|
{
|
||||||
show_error (line_number, "No open parenthesis found");
|
show_error (line_number, "No open parenthesis found");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue