[llvm-commits] [llvm] r80515 - /llvm/trunk/lib/Support/regcomp.c
Daniel Dunbar
daniel at zuster.org
Sun Aug 30 14:13:58 PDT 2009
Author: ddunbar
Date: Sun Aug 30 16:13:58 2009
New Revision: 80515
URL: http://llvm.org/viewvc/llvm-project?rev=80515&view=rev
Log:
Fix some possible-use-of-uninitialized warnings.
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=80515&r1=80514&r2=80515&view=diff
==============================================================================
--- llvm/trunk/lib/Support/regcomp.c (original)
+++ llvm/trunk/lib/Support/regcomp.c Sun Aug 30 16:13:58 2009
@@ -1419,8 +1419,8 @@
findmust(struct parse *p, struct re_guts *g)
{
sop *scan;
- sop *start; /* start initialized in the default case, after that */
- sop *newstart; /* newstart was initialized in the OCHAR case */
+ sop *start = 0; /* start initialized in the default case, after that */
+ sop *newstart = 0; /* newstart was initialized in the OCHAR case */
sopno newlen;
sop s;
char *cp;
More information about the llvm-commits
mailing list