CheckUninitVar::isFunctionParUsage: Avoid implicit conversion from type bool to int.

This commit is contained in:
orbitcowboy 2016-10-29 21:41:55 +02:00
parent 960a0c6b11
commit bc32ccc894
1 changed files with 1 additions and 1 deletions

View File

@ -1057,7 +1057,7 @@ int CheckUninitVar::isFunctionParUsage(const Token *vartok, bool pointer, Alloc
} else {
const bool isnullbad = _settings->library.isnullargbad(start->previous(), argumentNumber + 1);
if (pointer && !address && isnullbad && alloc == NO_ALLOC)
return true;
return 1;
const bool isuninitbad = _settings->library.isuninitargbad(start->previous(), argumentNumber + 1);
if (alloc != NO_ALLOC)
return isnullbad && isuninitbad;