about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/Zle/complete.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 27335d8f0..1f4e3f999 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-07-07  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* unposted: Src/Zle/complete.c: remove compiler warning.
+
 2015-07-06  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* unposted: Doc/Zsh/expn.yo: alphabetize ${(b)...} flag
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