Be explicit about what is negated.
This commit is contained in:
parent
503be5a657
commit
09dfb13f83
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: glbl.c,v 1.8 2014/03/31 12:55:46 christos Exp $ */
|
||||
/* $NetBSD: glbl.c,v 1.9 2015/08/28 11:29:48 joerg Exp $ */
|
||||
|
||||
/* glob.c: This file contains the global command routines for the ed line
|
||||
editor */
|
||||
@ -33,7 +33,7 @@
|
||||
#if 0
|
||||
static char *rcsid = "@(#)glob.c,v 1.1 1994/02/01 00:34:40 alm Exp";
|
||||
#else
|
||||
__RCSID("$NetBSD: glbl.c,v 1.8 2014/03/31 12:55:46 christos Exp $");
|
||||
__RCSID("$NetBSD: glbl.c,v 1.9 2015/08/28 11:29:48 joerg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -67,7 +67,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user