summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-05-12 11:45:28 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-05-12 11:45:28 +0000
commit8ee83d44ff765a87380c50c52979a37e8e856b5d (patch)
tree985bfc6718c739a8a9e944bcc619368d36eeca4b /Src
parent860764b30ab91e6af1ee98d26eaa622b215df948 (diff)
downloadzsh-8ee83d44ff765a87380c50c52979a37e8e856b5d.tar.gz
zsh-8ee83d44ff765a87380c50c52979a37e8e856b5d.tar.xz
zsh-8ee83d44ff765a87380c50c52979a37e8e856b5d.zip
18524: sepjoin !heap bug cause problem in vared
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
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;