about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/computil.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5f5e1c8be..d9ffaa94b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index 7fa4364df..795b2ba50 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -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++;