summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbjj <bjj>2001-03-12 03:41:24 (GMT)
committerbjj <bjj>2001-03-12 03:41:24 (GMT)
commitb7f3fa669fae753d01d572ce95e5bb18c11ff2d6 (patch)
treefee1fcc61800faaffdf0e7ba7a26092d99341a2a
parentba5fe7e03f7a120d9163b27b39931197f3f0d295 (diff)
downloadmoo-cvs-b7f3fa669fae753d01d572ce95e5bb18c11ff2d6.zip
moo-cvs-b7f3fa669fae753d01d572ce95e5bb18c11ff2d6.tar.gz
moo-cvs-b7f3fa669fae753d01d572ce95e5bb18c11ff2d6.tar.bz2
moo-cvs-b7f3fa669fae753d01d572ce95e5bb18c11ff2d6.tar.xz
fix ambiguous else with braces
-rw-r--r--regexpr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/regexpr.c b/regexpr.c
index 7d9a763..b002ff8 100644
--- a/regexpr.c
+++ b/regexpr.c
@@ -1375,11 +1375,12 @@ re_search_2(bufp, string1, size1, string2, size2, pos, range, regs,
range = -range;
} else
dir = 1;
- if (anchor == 2)
+ if (anchor == 2) {
if (pos != 0)
return -1;
else
range = 0;
+ }
for (; range >= 0; range--, pos += dir) {
if (fastmap) {
if (dir == 1) { /* searching forwards */
@@ -1642,6 +1643,9 @@ char rcsid_regexpr[] = "$Id";
/*
* $Log$
+ * Revision 1.4 2001/03/12 03:41:24 bjj
+ * fix ambiguous else with braces
+ *
* Revision 1.3 1998/12/14 13:18:56 nop
* Merge UNSAFE_OPTS (ref fixups); fix Log tag placement to fit CVS whims
*