From: Paul Eggert Date: Sun, 21 Aug 2005 00:43:34 +0000 (+0000) Subject: * config/srclist.txt: Add glibc bug 1225. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfffe7d2f136cb1dad1011d2d528f7c08e57266b;p=pspp * config/srclist.txt: Add glibc bug 1225. * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration of unused local, dfa. --- diff --git a/config/ChangeLog b/config/ChangeLog index 16536ae7b5..04ec036c9c 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,6 +1,6 @@ 2005-08-20 Paul Eggert - * srclist.txt: Add glibc bugs 1220, 1221, 1222, 1223, 1224. + * srclist.txt: Add glibc bugs 1220, 1221, 1222, 1223, 1224, 1225. 2005-08-19 Paul Eggert diff --git a/config/srclist.txt b/config/srclist.txt index c5a203c09a..62a228e154 100644 --- a/config/srclist.txt +++ b/config/srclist.txt @@ -1,4 +1,4 @@ -# $Id: srclist.txt,v 1.75 2005-08-21 00:29:47 eggert Exp $ +# $Id: srclist.txt,v 1.76 2005-08-21 00:43:34 eggert Exp $ # Files for which we are not the source. See ./srclistvars.sh for the # variable definitions. @@ -119,6 +119,7 @@ $LIBCSRC/posix/regex.c lib gpl # # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1216 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1220 +# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1225 #$LIBCSRC/posix/regexec.c lib gpl # # c89 changes $LIBCSRC/string/strdup.c lib gpl diff --git a/lib/ChangeLog b/lib/ChangeLog index 7034ebdfbf..341580d21e 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-08-20 Jim Meyering + + * regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration + of unused local, dfa. + 2005-08-20 Paul Eggert * regcomp.c (create_initial_state): Remove duplicate decl. diff --git a/lib/regexec.c b/lib/regexec.c index 00867aa9dd..6ca15bb547 100644 --- a/lib/regexec.c +++ b/lib/regexec.c @@ -214,7 +214,9 @@ regexec (const regex_t *__restrict preg, const char *__restrict string, { reg_errcode_t err; int start, length; +#ifdef _LIBC re_dfa_t *dfa = (re_dfa_t *)preg->buffer; +#endif if (eflags & ~(REG_NOTBOL | REG_NOTEOL | REG_STARTEND)) return REG_BADPAT; @@ -393,7 +395,9 @@ re_search_stub (struct re_pattern_buffer *bufp, regmatch_t *pmatch; int nregs, rval; int eflags = 0; +#ifdef _LIBC re_dfa_t *dfa = (re_dfa_t *)bufp->buffer; +#endif /* Check for out-of-range. */ if (BE (start < 0 || start > length, 0))