summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-12-24 21:48:18 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:10 -0700
commitbc64a25fd223d8e0cbc0a4aa2ef8cc03e1d60562 (patch)
tree41c371aa1ea100f81e2e29c56a802ce4be80d0ac
parent18c783a7e6acab9590980a54978a129f7b3dca81 (diff)
[PATCH] check for empty line a bit better in the parser.
Thanks to Mitch <mitch@0bits.com> for pointing this out.
-rw-r--r--namedev_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/namedev_parse.c b/namedev_parse.c
index 266fa35a19..4526203253 100644
--- a/namedev_parse.c
+++ b/namedev_parse.c
@@ -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 */