summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2011-07-11 20:43:22 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2011-07-11 20:43:22 +0000
commit4079c94ff13cdf5e5a21f5455e075ffbe8b2fa87 (patch)
tree1c14df6f41a8b24150ba178a33d5f81f0dc8ed78
parent04a146e273338328a605e0d510c4f8713260d2d9 (diff)
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;
}