chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] update the selinux.h file to start to look sane
[elogind.git]
/
udev_config.c
diff --git
a/udev_config.c
b/udev_config.c
index 20b6c75d32604fa1fe4263e5fee07d5600541aa2..ba2b3d2b886966eaa890d09673e9a64a310e79c8 100644
(file)
--- a/
udev_config.c
+++ b/
udev_config.c
@@
-161,15
+161,13
@@
static int parse_config_file(void)
continue;
}
continue;
}
- /* empty line? */
- if (bufline[0] == '\0' || bufline[0] == '\n')
- continue;
-
/* eat the whitespace */
/* eat the whitespace */
- while (isspace(bufline[0])) {
+ while (
(count > 0) &&
isspace(bufline[0])) {
bufline++;
count--;
}
bufline++;
count--;
}
+ if (count == 0)
+ continue;
/* see if this is a comment */
if (bufline[0] == COMMENT_CHARACTER)
/* see if this is a comment */
if (bufline[0] == COMMENT_CHARACTER)