summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/config.c b/config.c
index 3a59b77..aece8b1 100644
--- a/config.c
+++ b/config.c
@@ -22,13 +22,11 @@ eat_whitespace_and_comments(char **pos)
while (isspace(**pos))
(*pos)++;
- if (**pos == '#') {
- while (**pos != '\r' && **pos != '\n' && **pos != '\0')
- (*pos)++;
- continue;
- }
-
- return;
+ if (**pos != '#') {
+ return;
+
+ while (**pos != '\r' && **pos != '\n' && **pos != '\0')
+ (*pos)++;
}
}