Fix Cppcheck warning, uninitialized member variable

This commit is contained in:
Daniel Marjamäki 2018-01-25 17:29:08 +01:00
parent f73da16e94
commit 4d66609173
1 changed files with 1 additions and 0 deletions

View File

@ -1314,6 +1314,7 @@ CheckUninitVar::MyFileInfo::FunctionArg::FunctionArg(const Tokenizer *tokenizer,
id(FUNCTION_ID(scope->function)), id(FUNCTION_ID(scope->function)),
functionName(scope->className), functionName(scope->className),
argnr(argnr_), argnr(argnr_),
argnr2(0),
variableName(scope->function->getArgumentVar(argnr-1)->name()) variableName(scope->function->getArgumentVar(argnr-1)->name())
{ {
location.fileName = tokenizer->list.file(tok); location.fileName = tokenizer->list.file(tok);