From: Bruno Haible Date: Sat, 30 Sep 2023 12:54:51 +0000 (+0200) Subject: intl: Merge from glibc. X-Git-Tag: v0.23~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=637f6a9bd3ed9ed9537b31b27b4b8f3913e8ac71;p=thirdparty%2Fgettext.git intl: Merge from glibc. Apply commit 2017-06-19 Florian Weimer DCIGETTEXT: Do not make copy of localename --- diff --git a/gettext-runtime/intl/dcigettext.c b/gettext-runtime/intl/dcigettext.c index 4e0f3a2bd..c59c88a57 100644 --- a/gettext-runtime/intl/dcigettext.c +++ b/gettext-runtime/intl/dcigettext.c @@ -522,7 +522,7 @@ DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, #ifdef HAVE_PER_THREAD_LOCALE # ifndef IN_LIBGLOCALE # ifdef _LIBC - localename = strdupa (__current_locale_name (category)); + localename = __current_locale_name (category); # else categoryname = category_to_name (category); # define CATEGORYNAME_INITIALIZED