From 321e948c98b01e344e97a0be22ed79f95feb9697 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 26 Sep 2014 13:21:04 +0200 Subject: libcli: Remove unreachable code in dns_hosts_file. The count is already checked for 0 above this line so it can never be 0 at this point. Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam --- libcli/dns/dns_hosts_file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libcli/dns/dns_hosts_file.c b/libcli/dns/dns_hosts_file.c index 4b1bc53167..373047765b 100644 --- a/libcli/dns/dns_hosts_file.c +++ b/libcli/dns/dns_hosts_file.c @@ -110,8 +110,6 @@ static bool getdns_hosts_fileent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, cha if (next_token_talloc(ctx, &ptr, &next_name, NULL)) ++count; } - if (count <= 0) - continue; if ((strcasecmp(name_type, "A") == 0) || (strcasecmp(name_type, "AAAA") == 0)) -- cgit