about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-01-10 10:31:06 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2015-01-10 10:32:31 -0800
commit3495dc5c275c7e3fe3517cfd20e2dc7f1cfa43db (patch)
treecd0f52c49553471f38e6dc64027d75de65ad08a3 /Src
parentdaa788d88b7935ac93a9be54691bdd56e68ae2f3 (diff)
downloadzsh-3495dc5c275c7e3fe3517cfd20e2dc7f1cfa43db.tar.gz
zsh-3495dc5c275c7e3fe3517cfd20e2dc7f1cfa43db.tar.xz
zsh-3495dc5c275c7e3fe3517cfd20e2dc7f1cfa43db.zip
34213: in previous patch, do not change usepm if it is already set
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 8dee8f910..9258ddb6e 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -1934,7 +1934,7 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func),
      * We need to compare types with an existing pm if special,
      * even if that's unset
      */
-    if (pm && (pm->node.flags & PM_SPECIAL))
+    if (!usepm && pm && (pm->node.flags & PM_SPECIAL))
 	usepm = 2;	/* indicate that we preserve the PM_UNSET flag */
 
     /*