aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/CommentSema.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/CommentSema.cpp')
-rw-r--r--lib/AST/CommentSema.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/CommentSema.cpp b/lib/AST/CommentSema.cpp
index fa8001b327..72b0af3436 100644
--- a/lib/AST/CommentSema.cpp
+++ b/lib/AST/CommentSema.cpp
@@ -384,7 +384,7 @@ unsigned Sema::correctTypoInParmVarReference(
const ParmVarDecl * const *ParamVars,
unsigned NumParams) {
const unsigned MaxEditDistance = (Typo.size() + 2) / 3;
- unsigned BestPVDIndex = NULL;
+ unsigned BestPVDIndex = 0;
unsigned BestEditDistance = MaxEditDistance + 1;
for (unsigned i = 0; i != NumParams; ++i) {
const IdentifierInfo *II = ParamVars[i]->getIdentifier();