mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
intl: Do not return NULL on asprintf failure in gettext [BZ #24018]
Fixes commit 9695dd0c93
("DCIGETTEXT:
Use getcwd, asprintf to construct absolute pathname").
This commit is contained in:
parent
66081e383c
commit
8c1aafc1f3
@ -1,3 +1,9 @@
|
||||
2018-12-21 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ #24018]
|
||||
* intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
|
||||
failure.
|
||||
|
||||
2019-01-02 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
|
||||
|
@ -631,7 +631,7 @@ DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
|
||||
int ret = __asprintf (&xdirname, "%s/%s", cwd, dirname);
|
||||
free (cwd);
|
||||
if (ret < 0)
|
||||
return NULL;
|
||||
goto return_untranslated;
|
||||
dirname = xdirname;
|
||||
}
|
||||
#ifndef IN_LIBGLOCALE
|
||||
|
Loading…
Reference in New Issue
Block a user