From 984e1c1e44e3a6de236ab5d8850863a1f995b4e2 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 18 Oct 2011 19:05:07 +0200 Subject: resolv: fix compilation Signed-off-by: Bernhard Reutner-Fischer --- libc/inet/resolv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 : ""), class, type); + printf(";; res_mkquery(%d, %s, %d, %d)\n", + op, dname && *dname ? dname : "", class, type); #endif memset(buf, 0, HFIXEDSZ); -- cgit v1.2.3