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 d7265650c..823b5d5a7 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'.
+
 	* IKEGAMI Tsutomu: SourceForge bug 722366: initialisation of pwd
 	from PWD in environment didn't metafy.
 
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index fed165561..157a179af 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -910,7 +910,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++;