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