about summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-06-03 08:37:13 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-06-03 08:37:31 +0200
commit363911ce1313a246b7d33f0983a09e7ab2525b3a (patch)
treea35ff50d2244edd0ec9550c95bad86a905638904 /sysdeps/posix
parent808fd9e6fe23f96078d4e297de1131117d3898bb (diff)
downloadglibc-363911ce1313a246b7d33f0983a09e7ab2525b3a.tar.gz
glibc-363911ce1313a246b7d33f0983a09e7ab2525b3a.tar.xz
glibc-363911ce1313a246b7d33f0983a09e7ab2525b3a.zip
getaddrinfo: Eliminate another strdup call
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index a8b5bb541e..a8bdd9a182 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -732,7 +732,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
 			(*pat)->name = NULL;
 		      else if (canonbuf == NULL)
 			{
-			  canonbuf = strdup (air->canon);
+			  canonbuf = __strdup (air->canon);
 			  if (canonbuf == NULL)
 			    {
 			      result = -EAI_MEMORY;