summaryrefslogtreecommitdiff
path: root/lib/regex.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-05-06 18:39:32 +0000
committerJim Meyering <jim@meyering.net>1994-05-06 18:39:32 +0000
commita99f319d1252b1c40a3641f5516b8bf4b7dd5c53 (patch)
tree927b9761c4aa00baf5388c9e1103fdca164efaa8 /lib/regex.c
parent758d3a260dc6690cc6d5829116cfc7b0b2726926 (diff)
downloadcoreutils-a99f319d1252b1c40a3641f5516b8bf4b7dd5c53.tar.xz
merge with 1.9.1f
Diffstat (limited to 'lib/regex.c')
-rw-r--r--lib/regex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/regex.c b/lib/regex.c
index 8c853ba62..2edcc42f8 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -3,7 +3,7 @@
(Implements POSIX draft P10003.2/D11.2, except for
internationalization features.)
- Copyright (C) 1993 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -3180,7 +3180,11 @@ re_search_2 (bufp, string1, size1, string2, size2, startpos, range, regs, stop)
val = re_match_2_internal (bufp, string1, size1, string2, size2,
startpos, regs, stop);
+#ifndef REGEX_MALLOC
+#ifdef C_ALLOCA
alloca (0);
+#endif
+#endif
if (val >= 0)
return startpos;