Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
32993f46
Commit
32993f46
authored
Jul 09, 2010
by
Roberto Raggi
Browse files
Fixed possible crash in check undefined symbols.
parent
a96cc1a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppcheckundefinedsymbols.cpp
View file @
32993f46
...
...
@@ -371,7 +371,7 @@ void CheckUndefinedSymbols::checkNamespace(NameAST *name)
void
CheckUndefinedSymbols
::
checkName
(
NameAST
*
ast
)
{
if
(
ast
->
name
)
{
if
(
ast
&&
ast
->
name
)
{
if
(
const
Identifier
*
ident
=
ast
->
name
->
identifier
())
{
const
QByteArray
id
=
QByteArray
::
fromRawData
(
ident
->
chars
(),
ident
->
size
());
if
(
_potentialTypes
.
contains
(
id
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment