aboutsummaryrefslogtreecommitdiff
path: root/dump-stub.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-11-23 16:56:17 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-11-26 09:38:54 -0600
commitb7f43fe46029d8fd0594cd599fa2599dcce0f553 (patch)
tree3d33e6c0128d23853da4fe6ef3162664d3bad69b /dump-stub.c
parent74c856e9228445bac1624f6aad83422bdbc59f98 (diff)
qom: dynamic_cast of NULL is always NULL
Trying to cast a NULL value will cause a crash. Returning NULL is also sensible, and it is also what the type-unsafe DO_UPCAST macro does. Reported-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'dump-stub.c')
0 files changed, 0 insertions, 0 deletions