diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-06-27 17:46:03 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-06-27 17:46:03 +0100 |
commit | 420bfcfc66d7419632068f1b8e3a368198ecab7f (patch) | |
tree | 8ccfe457d3fe767267e1df9c8e3c029202a817d9 /Src/zsh.h | |
parent | 2f0213d7339e9bf3f5c465854b4452935249f87c (diff) | |
download | zsh-420bfcfc66d7419632068f1b8e3a368198ecab7f.tar.gz zsh-420bfcfc66d7419632068f1b8e3a368198ecab7f.tar.xz zsh-420bfcfc66d7419632068f1b8e3a368198ecab7f.zip |
35623: All is_array assignments should be treated as having a value.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index ee0609483..ce9b97903 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1162,13 +1162,11 @@ struct asgment { /* * Assignment has value? - * We need to arrange for each of the values - * to be the same type or the compiler will - * get fed up. + * If the assignment is an arrray, then it certainly has a value --- we + * can only tell if there's an expicit assignment. */ -#define ASG_VALUEP(asg) (ASG_ARRAYP(asg) ? \ - ((asg)->value.array != (LinkList)0) : \ +#define ASG_VALUEP(asg) (ASG_ARRAYP(asg) || \ ((asg)->value.scalar != (char *)0)) /* node in command path hash table (cmdnamtab) */ |