about summary refs log tree commit diff
path: root/Src/Zle/complete.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-07-07 12:48:30 +0100
committerPeter Stephenson <pws@zsh.org>2015-07-07 12:48:30 +0100
commit04675eca4ce9396d1efd0563b2b786f5bc6d66ed (patch)
tree53ddec7cdc6a4d73c269f2004cb3d7511580f927 /Src/Zle/complete.c
parentf56e23eb66ccaa6dec664eafe32f8fd66c2de090 (diff)
downloadzsh-04675eca4ce9396d1efd0563b2b786f5bc6d66ed.tar.gz
zsh-04675eca4ce9396d1efd0563b2b786f5bc6d66ed.tar.xz
zsh-04675eca4ce9396d1efd0563b2b786f5bc6d66ed.zip
unposted: remove compiler error in completion code
Diffstat (limited to 'Src/Zle/complete.c')
-rw-r--r--Src/Zle/complete.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c
index 30173927d..ee4e5b0a5 100644
--- a/Src/Zle/complete.c
+++ b/Src/Zle/complete.c
@@ -267,11 +267,12 @@ parse_cmatcher(char *name, char *s)
 		s++;
 
 	    if (!*s || !*++s) {
-		if (name)
+		if (name) {
                    if (both)
                        zwarnnam(name, "missing right anchor");
                    else
                        zwarnnam(name, "missing line pattern");
+		}
 		return pcm_err;
 	    }
 	} else