From 4d66609173429e04358711671265c20af2105f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 25 Jan 2018 17:29:08 +0100 Subject: [PATCH] Fix Cppcheck warning, uninitialized member variable --- lib/checkuninitvar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index 8a664a98c..ba80f405a 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -1314,6 +1314,7 @@ CheckUninitVar::MyFileInfo::FunctionArg::FunctionArg(const Tokenizer *tokenizer, id(FUNCTION_ID(scope->function)), functionName(scope->className), argnr(argnr_), + argnr2(0), variableName(scope->function->getArgumentVar(argnr-1)->name()) { location.fileName = tokenizer->list.file(tok);