summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-08 16:14:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-08 16:14:54 +0000
commitee7110f0478cc90ffa419759e21557ed8d669562 (patch)
tree355866bcc42fb8032a05a45fb710d22abc730777
parent0e6a4daaeb4cc1ea58e3424eadd5403647296910 (diff)
downloadllvm-ee7110f0478cc90ffa419759e21557ed8d669562.tar.gz
llvm-ee7110f0478cc90ffa419759e21557ed8d669562.tar.bz2
llvm-ee7110f0478cc90ffa419759e21557ed8d669562.tar.xz
Fix may-be-used-uninitialized warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81223 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/regcomp.c b/lib/Support/regcomp.c
index 16ca8d3f75..cd018d5dc5 100644
--- a/lib/Support/regcomp.c
+++ b/lib/Support/regcomp.c
@@ -257,8 +257,8 @@ static void
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? */