Fixed #3437 (segmentation fault of cppcheck)
This commit is contained in:
parent
deccb1df06
commit
4b4f201b79
|
@ -1698,7 +1698,7 @@ const Scope *SymbolDatabase::findVariableType(const Scope *start, const Token *t
|
||||||
// do the names match?
|
// do the names match?
|
||||||
if (scope->className == type->str()) {
|
if (scope->className == type->str()) {
|
||||||
// check if type does not have a namespace
|
// check if type does not have a namespace
|
||||||
if (type->previous()->str() != "::") {
|
if (type->previous() != NULL && type->previous()->str() != "::") {
|
||||||
const Scope *parent = start;
|
const Scope *parent = start;
|
||||||
|
|
||||||
// check if in same namespace
|
// check if in same namespace
|
||||||
|
|
Loading…
Reference in New Issue