aboutsummaryrefslogtreecommitdiff
path: root/read_config_file.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-04-27 20:59:03 +0200
committerPetr Machata <pmachata@redhat.com>2012-08-29 19:02:08 +0200
commita1ab898e725f8ec780c26296885492e77be0c47c (patch)
tree03f34170a0012dfb0629bbac66ad218332fa7bc5 /read_config_file.c
parent5b9a241728a0163ef5e6c982871bea14b18f303a (diff)
downloadltrace-a1ab898e725f8ec780c26296885492e77be0c47c.tar.gz
Empty line in a config file may end (and often does) in an EOL character
Diffstat (limited to 'read_config_file.c')
-rw-r--r--read_config_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read_config_file.c b/read_config_file.c
index 058a857..425b29c 100644
--- a/read_config_file.c
+++ b/read_config_file.c
@@ -983,7 +983,7 @@ process_line(char *buf) {
eat_spaces(&str);
/* A comment or empty line. */
- if (*str == ';' || *str == 0)
+ if (*str == ';' || *str == 0 || *str == '\n')
return NULL;
if (strncmp(str, "typedef", 7) == 0) {