* nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
first returned entry. Print name only if not NULL.
2004-08-13 Ulrich Drepper <drepper@redhat.com>
+ * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
+ first returned entry. Print name only if not NULL.
+
* nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
__netgrent object passed in instead of global variables.
Optimize.
&((struct sockaddr_in *) runp->ai_addr)->sin_addr,
buf, sizeof (buf)),
sockstr,
- runp->ai_canonname);
+ runp->ai_canonname ?: "");
runp = runp->ai_next;
}