From 8ee83d44ff765a87380c50c52979a37e8e856b5d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 12 May 2003 11:45:28 +0000 Subject: 18524: sepjoin !heap bug cause problem in vared --- Src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/utils.c b/Src/utils.c index 92d97bc5c..05ef32844 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2050,7 +2050,7 @@ sepjoin(char **s, char *sep, int heap) char sepbuf[3]; if (!*s) - return ""; + return heap ? "" : ztrdup(""); if (!sep) { sep = sepbuf; sepbuf[0] = *ifs; -- cgit 1.4.1