summaryrefslogtreecommitdiff
path: root/usr.bin/mg/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mg/match.c')
-rw-r--r--usr.bin/mg/match.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/match.c b/usr.bin/mg/match.c
index 64fa3d8f46d..968ad04f001 100644
--- a/usr.bin/mg/match.c
+++ b/usr.bin/mg/match.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: match.c,v 1.12 2005/11/18 20:56:53 deraadt Exp $ */
+/* $OpenBSD: match.c,v 1.13 2006/07/25 08:22:32 kjell Exp $ */
/* This file is in the public domain. */
@@ -105,7 +105,7 @@ balance(void)
for (;;) {
if (cbo == 0) {
clp = lback(clp); /* beginning of line */
- if (clp == curbp->b_linep)
+ if (clp == curbp->b_headp)
return (FALSE);
cbo = llength(clp) + 1;
}