Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olabetskyi committed Feb 12, 2024
1 parent d822de0 commit 4793471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
} else if (Token::Match(tok, "extern %type%")) {
while (Token::Match(tok, "%name%|*|&"))
tok = tok->next();
if (tok->str() != "(")
if (!tok || tok->str() != "(")
continue;
tok = tok->previous();
if (Token::simpleMatch(tok->linkAt(1), ") ;")) {
Expand Down

0 comments on commit 4793471

Please sign in to comment.