[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:
greg@kroah.com 2003-12-24 21:48:18 -08:00 committed by Greg KH
parent 18c783a7e6
commit bc64a25fd2
1 changed files with 2 additions and 2 deletions

View File

@ -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 */