summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/regex/regcomp.c
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-02-04 21:05:07 +0000
committerChristopher Faylor <me@cgf.cx>2010-02-04 21:05:07 +0000
commit6e3f2c626d965a8de228372b819fc65f0ba6da64 (patch)
tree1909a5c5b7ba47e5e88f2ed59ca6ab54bbfc4e0b /winsup/cygwin/regex/regcomp.c
parentfa40bd922ee199af9b2d70389f80ce0e3b67d3d4 (diff)
downloadcygnal-6e3f2c626d965a8de228372b819fc65f0ba6da64.tar.gz
cygnal-6e3f2c626d965a8de228372b819fc65f0ba6da64.tar.bz2
cygnal-6e3f2c626d965a8de228372b819fc65f0ba6da64.zip
* regcomp.c (p_ere): Workaround incorrect compiler warning.
* regerror.c (regatoi): Return non-const string or compiler complains in certain inexplicable situations.
Diffstat (limited to 'winsup/cygwin/regex/regcomp.c')
-rw-r--r--winsup/cygwin/regex/regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/regex/regcomp.c b/winsup/cygwin/regex/regcomp.c
index 5bcaa98c3..721982ab1 100644
--- a/winsup/cygwin/regex/regcomp.c
+++ b/winsup/cygwin/regex/regcomp.c
@@ -315,8 +315,8 @@ p_ere(struct parse *p,
int stop) /* character this ERE should end at */
{
char c;
- sopno prevback;
- sopno prevfwd;
+ sopno prevback = 0;
+ sopno prevfwd = 0;
sopno conc;
int first = 1; /* is this the first alternative? */