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] don't overwrite old config on install
[elogind.git]
/
namedev_parse.c
diff --git
a/namedev_parse.c
b/namedev_parse.c
index 9cd96a62241aac98cec0b19495dc69b031fd5167..33e0c89e2218676086b826c9c92e8ef140cf514f 100644
(file)
--- a/
namedev_parse.c
+++ b/
namedev_parse.c
@@
-158,6
+158,10
@@
int namedev_init_rules(void)
lineno++;
dbg_parse("read '%s'", temp);
lineno++;
dbg_parse("read '%s'", temp);
+ /* eat the whitespace */
+ while (isspace(*temp))
+ ++temp;
+
/* empty line? */
if (*temp == 0x00)
continue;
/* empty line? */
if (*temp == 0x00)
continue;
@@
-166,10
+170,6
@@
int namedev_init_rules(void)
if (*temp == COMMENT_CHARACTER)
continue;
if (*temp == COMMENT_CHARACTER)
continue;
- /* eat the whitespace */
- while (isspace(*temp))
- ++temp;
-
memset(&dev, 0x00, sizeof(struct config_device));
/* get the method */
memset(&dev, 0x00, sizeof(struct config_device));
/* get the method */