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:
Florian Weimer 2018-12-21 16:08:55 +01:00
parent 66081e383c
commit 8c1aafc1f3
2 changed files with 7 additions and 1 deletions

View File

@ -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>.

View File

@ -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