]> granicus.if.org Git - clang/commitdiff
Always initialize variable. If opening quote is the last character in comment, we...
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 12 Jul 2012 16:34:32 +0000 (16:34 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 12 Jul 2012 16:34:32 +0000 (16:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160133 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/CommentLexer.h

index 1ff793701d596f0667377fafbf1854c8c5ee2100..f167934b8a5aae4fd8ca4d740a978b085eaf70de 100644 (file)
@@ -509,7 +509,7 @@ public:
       } else
         Error = true;
     }
-    char C;
+    char C = '\0';
     while (!Error && !isEnd()) {
       C = peek();
       WordText.push_back(C);