diff options
Diffstat (limited to 'libc/inet')
-rw-r--r-- | libc/inet/resolv.c | 4 |
1 files 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 : "<Nil>"), class, type); + printf(";; res_mkquery(%d, %s, %d, %d)\n", + op, dname && *dname ? dname : "<null>", class, type); #endif memset(buf, 0, HFIXEDSZ); |