This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.25-393-g363911c
- From: fw at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 3 Jun 2017 06:38:08 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.25-393-g363911c
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 363911ce1313a246b7d33f0983a09e7ab2525b3a (commit)
from 808fd9e6fe23f96078d4e297de1131117d3898bb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=363911ce1313a246b7d33f0983a09e7ab2525b3a
commit 363911ce1313a246b7d33f0983a09e7ab2525b3a
Author: Florian Weimer <fweimer@redhat.com>
Date: Sat Jun 3 08:37:13 2017 +0200
getaddrinfo: Eliminate another strdup call
diff --git a/ChangeLog b/ChangeLog
index a97f09d..b22786f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-03 Florian Weimer <fweimer@redhat.com>
+
+ * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __strdup instead
+ of strdup.
+
2017-06-02 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86/cacheinfo.c (__x86_shared_non_temporal_threshold):
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index a8b5bb5..a8bdd9a 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;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/posix/getaddrinfo.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources