about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2005-07-12 03:07:22 +0000
committerBart Schaefer <barts@users.sourceforge.net>2005-07-12 03:07:22 +0000
commit5af2ab3b9cbf701555b58641d251b24ac253de6a (patch)
tree4f3927b17204eab9218ae9e54c51fd0abb8eb94e /Src
parenta18270da295568cae6f7a0689e28638d03867529 (diff)
downloadzsh-5af2ab3b9cbf701555b58641d251b24ac253de6a.tar.gz
zsh-5af2ab3b9cbf701555b58641d251b24ac253de6a.tar.xz
zsh-5af2ab3b9cbf701555b58641d251b24ac253de6a.zip
21428: Travis: fix crash on bad compvalues call
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/computil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index aa62cc78b..e56972cee 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -2660,7 +2660,8 @@ parse_cvdef(char *nam, char **args)
     char **oargs = args, sep = '\0', asep = '=', *name, *descr, *p, *q, **xor, c;
     int xnum, multi, vtype, hassep = 0, words = 0;
 
-    while (args[0][0] == '-' &&
+    while (args && args[0] && args[1] &&
+           args[0][0] == '-' &&
            (args[0][1] == 's' || args[0][1] == 'S' || args[0][1] == 'w') &&
            !args[0][2]) {