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
This commit is contained in:
Eitan Adler 2015-04-20 02:07:57 +00:00
parent a3a4b110da
commit 7d00295b1b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281758

View file

@ -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;
}