Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
1ba39198
Commit
1ba39198
authored
Oct 05, 2009
by
Erik Verbruggen
Browse files
Fixed possible null-pointer dereference.
parent
f1e66546
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/CheckName.cpp
View file @
1ba39198
...
...
@@ -394,8 +394,11 @@ bool CheckName::visit(ObjCSelectorWithArgumentsAST *ast)
names
.
push_back
(
name
);
}
_name
=
control
()
->
selectorNameId
(
&
names
[
0
],
names
.
size
(),
true
);
ast
->
selector_name
=
_name
;
if
(
!
names
.
empty
())
{
_name
=
control
()
->
selectorNameId
(
&
names
[
0
],
names
.
size
(),
true
);
ast
->
selector_name
=
_name
;
}
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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