aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2014-06-05 23:13:36 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2014-07-01 10:20:41 +0200
commit8ffad850ef5ae14287d0e185d478c9a35820482c (patch)
tree6d3f53dde07032ba978b4d05d59edc7a1e6e7bbe /tests
parentc28322d10cd5f0529605b48684d2b82c9eb9c020 (diff)
downloadqemu-8ffad850ef5ae14287d0e185d478c9a35820482c.zip
qemu-8ffad850ef5ae14287d0e185d478c9a35820482c.tar.gz
qemu-8ffad850ef5ae14287d0e185d478c9a35820482c.tar.bz2
qom: object: Ignore refs/unrefs of NULL
Just do nothing if passed NULL for a ref or unref. This avoids call sites that manage a combination of NULL or non-NULL pointers having to add iffery around every ref and unref. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions