mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 05:00:59 +01:00
16435: Fix core dump in `hash'.
This commit is contained in:
parent
8840ce7144
commit
9113c2e2d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue