18477: Null pointer dereferenced in _arguments "*-+bar"

This commit is contained in:
Peter Stephenson 2003-04-23 18:50:34 +00:00
parent f319daae1d
commit 807e5536a5
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View 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++;