Skip to content
Snippets Groups Projects
Commit 5d0eb9bd authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

QML/JS: fix improbable nullptr deref in possible future use.


The ast parameter cannot be null, because the only use checks for it not
to be null. However, if it would ever be re-used somewhere else, the
logic is plain wrong. Clarification by an assert makes it clear what the
intent is.

Pointed out by the clang static analyzer.

Change-Id: I2c8cba5e5847fc1f92c10021109c55ff8ccd58c4
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 3b6d2043
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment