about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/Zle/zle_tricky.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 002c0e16c..975c5d124 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -801,9 +801,9 @@ check_param(char *s, int set, int test)
 		isuf = dupstring(e);
 		untokenize(isuf);
 		*e = '\0';
-		ripre = dupstring(s);
+		ripre = dyncat((ripre ? ripre : ""), s);
+		ipre = dyncat((ipre ? ipre : ""), s);
 		ripre[b - s] = '\0';
-		ipre = dupstring(ripre);
 		untokenize(ipre);
 	    }
 	    else