Fix may-be-used-uninitialized warning.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 8 Sep 2009 16:14:54 +0000 (16:14 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 8 Sep 2009 16:14:54 +0000 (16:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81223 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/regcomp.c

index 16ca8d3f75c26f18ebd38455cb054c4ca0a04131..cd018d5dc5bc4d3628dcacbff4d72b1cb0cfc53f 100644 (file)
@@ -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? */