Return "" if reallocf() fails

This commit is contained in:
Andrey A. Chernov 2001-06-25 20:56:59 +00:00
parent ecffe71379
commit d118fd8a39

View File

@ -63,7 +63,8 @@ nl_langinfo(nl_item item) {
strcpy(cset, "ISO");
strcat(cset, ret + 4);
ret = cset;
}
} else
ret = "";
} else if (strcmp(ret, "EUC") == 0) {
if (strncmp(s, "ja_JP", 5) == 0)
ret = "eucJP";