diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-27 20:59:03 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-29 19:02:08 +0200 |
commit | a1ab898e725f8ec780c26296885492e77be0c47c (patch) | |
tree | 03f34170a0012dfb0629bbac66ad218332fa7bc5 /read_config_file.c | |
parent | 5b9a241728a0163ef5e6c982871bea14b18f303a (diff) | |
download | ltrace-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.c | 2 |
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) { |