From 6dc25b55ba0026ab1cc6d89c4f39346e553cab6b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 1 Mar 1999 21:56:06 +0000 Subject: [PATCH] Update. * resolv/res_hconf.c (parse_line): Skip empty lines. Bug reported by Marcus Harnisch . 1999-03-01 Andreas Jaeger --- ChangeLog | 5 +++++ resolv/res_hconf.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 23f1a1f..63daabb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 1999-03-01 Andreas Jaeger + * resolv/res_hconf.c (parse_line): Skip empty lines. Bug reported + by Marcus Harnisch . + +1999-03-01 Andreas Jaeger + * sysdeps/i386/sys/ucontext.h (ucontext): Rename field uc_links to uc_link which is the right name according to Unix98. Reported by Craig Metz [PR libc/1001]. 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); -- 2.7.4