summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2011-07-11 20:43:21 +0000
committertedu <tedu@openbsd.org>2011-07-11 20:43:21 +0000
commit1b60208b89e2b3dc834c7ef9f25972ea5ebf4057 (patch)
tree9c06a2b7d2573f34a875882768a9868dfca324fc
parenthow annoying. soembody added a regress test that would have caught my (diff)
downloadwireguard-openbsd-1b60208b89e2b3dc834c7ef9f25972ea5ebf4057.tar.xz
wireguard-openbsd-1b60208b89e2b3dc834c7ef9f25972ea5ebf4057.zip
the matchall magic shortcut requires we set c=1 to print now
fixes libpqxx build
-rw-r--r--usr.bin/grep/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c
index 6754cfc02ed..6e5e28983c0 100644
--- a/usr.bin/grep/util.c
+++ b/usr.bin/grep/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.40 2011/07/08 01:20:24 tedu Exp $ */
+/* $OpenBSD: util.c,v 1.41 2011/07/11 20:43:21 tedu Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -174,6 +174,7 @@ procline(str_t *l, int nottext)
c = 0;
i = 0;
if (matchall) {
+ c = 1;
goto print;
}