about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-12-17 01:16:36 +0000
committerClint Adams <clint@users.sourceforge.net>2001-12-17 01:16:36 +0000
commit56854a2fb6373e8104c2ce8191dbf83e890d5d73 (patch)
tree4af54c5e28857ba6e57ba14dd0def1274c30d6ef
parente4a8182ab715967d4fbba9ae419621603da3be35 (diff)
downloadzsh-56854a2fb6373e8104c2ce8191dbf83e890d5d73.tar.gz
zsh-56854a2fb6373e8104c2ce8191dbf83e890d5d73.tar.xz
zsh-56854a2fb6373e8104c2ce8191dbf83e890d5d73.zip
ref 16347: tweaks
-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);