if (string == 0 || *string == 0)
{
if (lenp)
- *lenp = 0;
+ *lenp = 0;
return ((char *)NULL);
}
- t = xmalloc (len + 1);
-
locale = get_locale_var ("LC_MESSAGES");
/* If we don't have setlocale() or the current locale is `C' or `POSIX',
(locale[0] == 'C' && locale[1] == '\0') || STREQ (locale, "POSIX"))
#endif
{
+ t = xmalloc (len + 1);
strcpy (t, string);
if (lenp)
*lenp = len;
translated = gettext (string);
if (translated == string) /* gettext returns its argument if untranslatable */
{
+ t = xmalloc (len + 1);
strcpy (t, string);
if (lenp)
*lenp = len;
}
else
{
- free (t);
tlen = strlen (translated);
t = xmalloc (tlen + 1);
strcpy (t, translated);