[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;
|
++temp;
|
||||||
|
|
||||||
/* empty line? */
|
/* empty line? */
|
||||||
if (*temp == 0x00)
|
if ((*temp == 0x00) || (*temp == 0x0a))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* see if this is a comment */
|
/* see if this is a comment */
|
||||||
|
@ -378,7 +378,7 @@ int namedev_init_permissions(void)
|
||||||
++temp;
|
++temp;
|
||||||
|
|
||||||
/* empty line? */
|
/* empty line? */
|
||||||
if (*temp == 0x00)
|
if ((*temp == 0x00) || (*temp == 0x0a))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* see if this is a comment */
|
/* see if this is a comment */
|
||||||
|
|
Loading…
Reference in New Issue