mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
[PATCH] check for empty line a bit better in the parser.
Thanks to Mitch <mitch@0bits.com> for pointing this out.
This commit is contained in:
parent
18c783a7e6
commit
bc64a25fd2
@ -176,7 +176,7 @@ int namedev_init_rules(void)
|
||||
++temp;
|
||||
|
||||
/* empty line? */
|
||||
if (*temp == 0x00)
|
||||
if ((*temp == 0x00) || (*temp == 0x0a))
|
||||
continue;
|
||||
|
||||
/* see if this is a comment */
|
||||
@ -378,7 +378,7 @@ int namedev_init_permissions(void)
|
||||
++temp;
|
||||
|
||||
/* empty line? */
|
||||
if (*temp == 0x00)
|
||||
if ((*temp == 0x00) || (*temp == 0x0a))
|
||||
continue;
|
||||
|
||||
/* see if this is a comment */
|
||||
|
Loading…
x
Reference in New Issue
Block a user