From 09dfb13f83261bbdedf8a2685b1ab4ae06935915 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 28 Aug 2015 11:29:48 +0000 Subject: [PATCH] Be explicit about what is negated. --- bin/ed/glbl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ed/glbl.c b/bin/ed/glbl.c index 97675d6c27e1..2a3a6e3c9b9a 100644 --- a/bin/ed/glbl.c +++ b/bin/ed/glbl.c @@ -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; }