summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_hconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c
index 3905360d50..06306f7726 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);