[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
2005-04-26 21:13:10 -07:00
committed by Greg KH
parent 18c783a7e6
commit bc64a25fd2
+2 -2
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 */