From 6dc25b55ba0026ab1cc6d89c4f39346e553cab6b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 1 Mar 1999 21:56:06 +0000 Subject: Update. * resolv/res_hconf.c (parse_line): Skip empty lines. Bug reported by Marcus Harnisch . 1999-03-01 Andreas Jaeger --- resolv/res_hconf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'resolv/res_hconf.c') 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); -- cgit v1.1