diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 0a399e068..9c139fd5a 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2659,7 +2659,7 @@ bin_hash(char *name, char **argv, char *ops, int func) zwarnnam(name, "bad pattern : %s", *argv, 0); returnval = 1; } - } else if((asg = getasg(*argv))->value) { + } else if ((asg = getasg(*argv)) && asg->value) { if(isset(RESTRICTED)) { zwarnnam(name, "restricted: %s", asg->value, 0); returnval = 1; |