about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/params.c1
-rw-r--r--Src/subst.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2124d7b22..e086307ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-17  Clint Adams  <clint@zsh.org>
+
+	* ref 16347: Src/params.c, Src/subst.c:
+	tweaks pointed out by Zefram.
+
 2001-12-16  Clint Adams  <clint@zsh.org>
 
 	* 16346: Doc/Zsh/expn.yo: documentation for 16345.
diff --git a/Src/params.c b/Src/params.c
index cb08b4e6a..ac7f084bd 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -2501,7 +2501,6 @@ zhuniqarray(char **x)
     while (*++p)
 	for (t = x; t < p; t++)
 	    if (!strcmp(*p, *t)) {
-		*p = NULL;
 		for (t = p--; (*t = t[1]) != NULL; t++);
 		break;
 	    }
diff --git a/Src/subst.c b/Src/subst.c
index 9a59495d0..f8ce51ae9 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -1879,7 +1879,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
 	    return n;
 	}
 	if (unique) {
-/*	    if(!copied) */
+	    if(!copied)
 		aval = arrdup(aval);
 
 	    i = arrlen(aval);