From 984e1c1e44e3a6de236ab5d8850863a1f995b4e2 Mon Sep 17 00:00:00 2001
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Date: Tue, 18 Oct 2011 19:05:07 +0200
Subject: resolv: fix compilation

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 libc/inet/resolv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'libc/inet')

diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 0fd28ee99..21e84e52c 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -4212,8 +4212,8 @@ int res_mkquery(int op, const char *dname, int class, int type,
 
 #ifdef DEBUG
 	if (_res_options & RES_DEBUG)
-		printf(";; res_mkquery(%d, %s, %s, %d, %d)\n",
-			   name, (op, dname ? dname : "<Nil>"), class, type);
+		printf(";; res_mkquery(%d, %s, %d, %d)\n",
+			   op, dname && *dname ? dname : "<null>", class, type);
 #endif
 
 	memset(buf, 0, HFIXEDSZ);
-- 
cgit v1.2.3