diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-12-21 16:08:55 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-01-02 16:26:58 +0100 |
commit | 8c1aafc1f34d090a5b41dc527c33e8687f6a1287 (patch) | |
tree | ad64716032d4e4e01c4fda3e7f418da24957de2f /intl | |
parent | nptl/tst-audit-threads: Switch to <support/test-driver.c> (diff) | |
download | glibc-8c1aafc1f34d090a5b41dc527c33e8687f6a1287.tar.gz glibc-8c1aafc1f34d090a5b41dc527c33e8687f6a1287.tar.bz2 glibc-8c1aafc1f34d090a5b41dc527c33e8687f6a1287.zip |
intl: Do not return NULL on asprintf failure in gettext [BZ #24018]
Fixes commit 9695dd0c9309712ed8e9c17a7040fe7af347f2dc ("DCIGETTEXT:
Use getcwd, asprintf to construct absolute pathname").
Diffstat (limited to 'intl')
-rw-r--r-- | intl/dcigettext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intl/dcigettext.c b/intl/dcigettext.c index f22b37273f..4df93e2a8e 100644 --- a/intl/dcigettext.c +++ b/intl/dcigettext.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 |