d8307d
commit 8c1aafc1f34d090a5b41dc527c33e8687f6a1287
d8307d
Author: Florian Weimer <fweimer@redhat.com>
d8307d
Date:   Fri Dec 21 16:08:55 2018 +0100
d8307d
d8307d
    intl: Do not return NULL on asprintf failure in gettext [BZ #24018]
d8307d
    
d8307d
    Fixes commit 9695dd0c9309712ed8e9c17a7040fe7af347f2dc ("DCIGETTEXT:
d8307d
    Use getcwd, asprintf to construct absolute pathname").
d8307d
d8307d
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
d8307d
index 2a5036994824875b..25f47c5bd3b0ea04 100644
d8307d
--- a/intl/dcigettext.c
d8307d
+++ b/intl/dcigettext.c
d8307d
@@ -631,7 +631,7 @@ DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
d8307d
 	  int ret = __asprintf (&xdirname, "%s/%s", cwd, dirname);
d8307d
 	  free (cwd);
d8307d
 	  if (ret < 0)
d8307d
-	      return NULL;
d8307d
+	    goto return_untranslated;
d8307d
 	  dirname = xdirname;
d8307d
 	}
d8307d
 #ifndef IN_LIBGLOCALE