OSDN Git Service

resolv: fix compilation
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 18 Oct 2011 17:05:07 +0000 (19:05 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 20 Oct 2011 16:55:37 +0000 (18:55 +0200)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/inet/resolv.c

index 0fd28ee..21e84e5 100644 (file)
@@ -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);