aboutsummaryrefslogtreecommitdiffstats
path: root/src/search.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1993-04-07 20:08:55 +0000
committerRichard M. Stallman <[email protected]>1993-04-07 20:08:55 +0000
commit42db823b21c53ae65257106aff433c83ecb0d2d5 (patch)
tree4aba0c678f52dab5941ab3c7024b5b83f50ccbee /src/search.c
parent987d2ad1db25661c24db082824d1b5d140d6da84 (diff)
(search_buffer): Fix typo in previous change.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/search.c b/src/search.c
index fdf19fe656..86a8977c5a 100644
--- a/src/search.c
+++ b/src/search.c
@@ -670,11 +670,12 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt)
}
while (n < 0)
{
+ int val;
BLOCK_INPUT;
- int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
- pos - BEGV, lim - pos, &search_regs,
- /* Don't allow match past current point */
- pos - BEGV);
+ val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
+ pos - BEGV, lim - pos, &search_regs,
+ /* Don't allow match past current point */
+ pos - BEGV);
UNBLOCK_INPUT;
if (val == -2)
matcher_overflow ();
@@ -700,10 +701,11 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt)
}
while (n > 0)
{
+ int val;
BLOCK_INPUT;
- int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
- pos - BEGV, lim - pos, &search_regs,
- lim - BEGV);
+ val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
+ pos - BEGV, lim - pos, &search_regs,
+ lim - BEGV);
UNBLOCK_INPUT;
if (val == -2)
matcher_overflow ();