summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-11-22 16:25:06 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-11-22 16:25:06 +0000
commitb0323cab3b845f1cfa3bc4bc029de86b207ec26e (patch)
treeae7bb9ee104b0d8e205878789abda7f4fe682213 /Src
parentae4cf7b743da0785cb8d1f0d01b8697318f254dc (diff)
downloadzsh-b0323cab3b845f1cfa3bc4bc029de86b207ec26e.tar.gz
zsh-b0323cab3b845f1cfa3bc4bc029de86b207ec26e.tar.xz
zsh-b0323cab3b845f1cfa3bc4bc029de86b207ec26e.zip
37187: infinite loop in "hash -m"
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 01eb5b84c..cac4f42f9 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -3712,6 +3712,7 @@ bin_hash(char *name, char **argv, Options ops, UNUSED(int func))
 		zwarnnam(name, "bad pattern : %s", *argv);
 		returnval = 1;
 	    }
+	    argv++;
             continue;
 	}
         if (!(asg = getasg(&argv, NULL))) {