mirror of
https://github.com/zsh-users/zsh
synced 2024-07-21 18:24:18 +00:00
18477: Null pointer dereferenced in _arguments "*-+bar"
This commit is contained in:
parent
f319daae1d
commit
807e5536a5
|
@ -1,5 +1,8 @@
|
|||
2003-04-23 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||
|
||||
* 18477: Src/Zle/computil.c: null pointer dereferenced with
|
||||
_arguments '*-+bar'.
|
||||
|
||||
* 18466: Src/Modules/tcp.c, Src/Modules/tcp.h: Only the module's
|
||||
C source file should include the corresponding .mdh file.
|
||||
|
||||
|
|
|
@ -1397,7 +1397,7 @@ parse_cadef(char *nam, char **args)
|
|||
opt->descr = NULL;
|
||||
} else
|
||||
opt->descr = NULL;
|
||||
opt->xor = (again == 1 ? zarrdup(xor) : xor);
|
||||
opt->xor = (again == 1 && xor ? zarrdup(xor) : xor);
|
||||
opt->type = otype;
|
||||
opt->args = oargs;
|
||||
opt->num = nopts++;
|
||||
|
|
Loading…
Reference in a new issue