Module Name: src
Committed By: joerg
Date: Fri Aug 28 11:29:48 UTC 2015
Modified Files:
src/bin/ed: glbl.c
Log Message:
Be explicit about what is negated.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/bin/ed/glbl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ed/glbl.c
diff -u src/bin/ed/glbl.c:1.8 src/bin/ed/glbl.c:1.9
--- src/bin/ed/glbl.c:1.8 Mon Mar 31 12:55:46 2014
+++ src/bin/ed/glbl.c Fri Aug 28 11:29:48 2015
@@ -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;
}