From c938dc7725624ddf38710bc30710c6164735cb96 Mon Sep 17 00:00:00 2001 From: Aaron Lipinski Date: Mon, 29 Jul 2019 08:08:51 +1200 Subject: [PATCH] rely on final return NULL --- ui/dns.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/dns.c b/ui/dns.c index bc79b1a..97a34c4 100644 --- a/ui/dns.c +++ b/ui/dns.c @@ -276,8 +276,6 @@ char *dns_lookup2( /* we've got a result. */ if (r->name) return r->name; - else - return NULL; } else { r = xmalloc(sizeof(struct dns_results)); memcpy(&r->ip, ip, sizeof(r->ip)); -- 2.47.2