[llvm-commits] [llvm] r81223 - /llvm/trunk/lib/Support/regcomp.c

Daniel Dunbar daniel at zuster.org
Tue Sep 8 09:14:55 PDT 2009


Author: ddunbar
Date: Tue Sep  8 11:14:54 2009
New Revision: 81223

URL: http://llvm.org/viewvc/llvm-project?rev=81223&view=rev
Log:
Fix may-be-used-uninitialized warning.

Modified:
    llvm/trunk/lib/Support/regcomp.c

Modified: llvm/trunk/lib/Support/regcomp.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/regcomp.c?rev=81223&r1=81222&r2=81223&view=diff

==============================================================================
--- llvm/trunk/lib/Support/regcomp.c (original)
+++ llvm/trunk/lib/Support/regcomp.c Tue Sep  8 11:14:54 2009
@@ -257,8 +257,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? */
 





More information about the llvm-commits mailing list