From: greg@kroah.com Date: Thu, 25 Dec 2003 05:48:18 +0000 (-0800) Subject: [PATCH] check for empty line a bit better in the parser. X-Git-Tag: 011~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=bc64a25fd223d8e0cbc0a4aa2ef8cc03e1d60562 [PATCH] check for empty line a bit better in the parser. Thanks to Mitch for pointing this out. --- diff --git a/namedev_parse.c b/namedev_parse.c index 266fa35a1..452620325 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 */