diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-03-01 21:56:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-03-01 21:56:06 +0000 |
commit | 6dc25b55ba0026ab1cc6d89c4f39346e553cab6b (patch) | |
tree | 26de703227a7365b974fbc43a7f9e5f014066d07 /resolv/res_hconf.c | |
parent | 9f6b6d8d19c17bdb5a30573c0ffc64e4177c7a49 (diff) | |
download | glibc-6dc25b55ba0026ab1cc6d89c4f39346e553cab6b.zip glibc-6dc25b55ba0026ab1cc6d89c4f39346e553cab6b.tar.gz glibc-6dc25b55ba0026ab1cc6d89c4f39346e553cab6b.tar.bz2 |
Update.
* resolv/res_hconf.c (parse_line): Skip empty lines. Bug reported
by Marcus Harnisch <marcus@harnisch.isdn.cs.tu-berlin.de>.
1999-03-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
Diffstat (limited to 'resolv/res_hconf.c')
-rw-r--r-- | resolv/res_hconf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c index 3905360..06306f7 100644 --- a/resolv/res_hconf.c +++ b/resolv/res_hconf.c @@ -263,7 +263,8 @@ parse_line (const char *fname, int line_num, const char *str) str = skip_ws (str); - if (*str == '#') return; /* skip line comment */ + /* skip line comment and empty lines: */ + if (*str == '\0' || *str == '#') return; start = str; str = skip_string (str); |