summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-06-07 10:08:02 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2016-06-07 10:08:02 -0700
commit769bd4070a26ed356410187bfdd0e61939bf8481 (patch)
tree93245bdb89a20d8b9cad717ef273560abdc6731d
parent7a5ecf4909bb73550012c4b580f054a29a255380 (diff)
downloadzsh-769bd4070a26ed356410187bfdd0e61939bf8481.tar.gz
zsh-769bd4070a26ed356410187bfdd0e61939bf8481.tar.xz
zsh-769bd4070a26ed356410187bfdd0e61939bf8481.zip
38630: fix infinite loop of "hash ="
-rw-r--r--ChangeLog4
-rw-r--r--Src/builtin.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5ff60c6f2..b066f208e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-07  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* 38630: Src/builtin.c: fix infinite loop of "hash ="
+
 2016-06-06  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 38610: Functions/VCS_Info/VCS_INFO_quilt: vcs_info quilt:
diff --git a/Src/builtin.c b/Src/builtin.c
index 6f07fc678..c2fb81ed1 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -3748,6 +3748,7 @@ bin_hash(char *name, char **argv, Options ops, UNUSED(int func))
         if (!(asg = getasg(&argv, NULL))) {
 	    zwarnnam(name, "bad assignment");
 	    returnval = 1;
+	    break;
         } else if (ASG_VALUEP(asg)) {
 	    if(isset(RESTRICTED)) {
 		zwarnnam(name, "restricted: %s", asg->value.scalar);