From bc64a25fd223d8e0cbc0a4aa2ef8cc03e1d60562 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Wed, 24 Dec 2003 21:48:18 -0800 Subject: [PATCH] [PATCH] check for empty line a bit better in the parser. Thanks to Mitch for pointing this out. --- namedev_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/namedev_parse.c b/namedev_parse.c index 266fa35a..45262032 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 */ -- 2.39.5