summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/builtin.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ce46dccf0..9cc4cf93c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2015-11-22  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 3787: Src/builtin.c: infinite loop in "hash -m".
+
 	* 37186: Functions/VCS_Info/VCS_INFO_nvcsformats,
 	Src/Zle/zle_main.c: a couple of WARN_CREATE_GLOBAL fixes.
 
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))) {