Commit c4d4a493 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check for possible 0x0 access.

parent 1932ffd1
......@@ -662,7 +662,7 @@ bool CheckSymbols::visit(FunctionDefinitionAST *ast)
accept(ast->decl_specifier_list);
if (ast->declarator && ! ast->symbol->isGenerated()) {
if (ast->declarator && ast->symbol && ! ast->symbol->isGenerated()) {
Function *fun = ast->symbol;
if (NameAST *declId = declaratorId(ast->declarator)) {
if (QualifiedNameAST *q = declId->asQualifiedName())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment