diff options
Diffstat (limited to 'libguile/regex-posix.c')
-rw-r--r-- | libguile/regex-posix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libguile/regex-posix.c b/libguile/regex-posix.c index 0b63a3ea8..f72efe455 100644 --- a/libguile/regex-posix.c +++ b/libguile/regex-posix.c @@ -249,8 +249,7 @@ scm_regexp_exec (SCM rx, SCM str, SCM start, SCM flags) int i; /* The match vector must include a cell for the string that was matched, so add 1. */ - mvec = scm_make_vector (SCM_MAKINUM (nmatches + 1), SCM_UNSPECIFIED, - SCM_UNDEFINED); + mvec = scm_make_vector (SCM_MAKINUM (nmatches + 1), SCM_UNSPECIFIED); SCM_VELTS(mvec)[0] = str; for (i = 0; i < nmatches; ++i) SCM_VELTS(mvec)[i+1] = scm_cons(SCM_MAKINUM(matches[i].rm_so + offset), |