svn commit: r281758 - head/bin/ed
Eitan Adler
eadler at FreeBSD.org
Mon Apr 20 02:07:58 UTC 2015
Author: eadler
Date: Mon Apr 20 02:07:57 2015
New Revision: 281758
URL: https://svnweb.freebsd.org/changeset/base/281758
Log:
ed(1): Fix [-Werror=logical-not-parentheses]
/usr/src/bin/ed/glbl.c:64:36: error: logical not is only applied to
theleft hand side of comparison [-Werror=logical-not-parentheses]
Obtained from: Dragonfly (1fff89cbaeaa43af720a1f23d9c466b756dd8a58)
MFC After: 1 month
Modified:
head/bin/ed/glbl.c
Modified: head/bin/ed/glbl.c
==============================================================================
--- head/bin/ed/glbl.c Mon Apr 20 00:24:32 2015 (r281757)
+++ head/bin/ed/glbl.c Mon Apr 20 02:07:57 2015 (r281758)
@@ -60,7 +60,7 @@ build_active_list(int isgcmd)
return ERR;
if (isbinary)
NUL_TO_NEWLINE(s, lp->len);
- if (!regexec(pat, s, 0, NULL, 0) == isgcmd &&
+ if (!(regexec(pat, s, 0, NULL, 0) == isgcmd) &&
set_active_node(lp) < 0)
return ERR;
}
More information about the svn-src-all
mailing list