summaryrefslogtreecommitdiffstats
path: root/libvirt-override.c
diff options
context:
space:
mode:
authorGuannan Ren <gren@redhat.com>2012-09-27 01:33:50 +0800
committerGuannan Ren <gren@redhat.com>2012-09-28 16:43:12 +0800
commitb9355e94901e925dd2ac23935f03ef2385cc262a (patch)
tree099ae430ed3d4d764524950cd329daae859fe645 /libvirt-override.c
parent48e9333bec0e96b667ba5a17093ac4aeef3491a3 (diff)
downloadlibvirt-python-v6-b9355e94901e925dd2ac23935f03ef2385cc262a.tar.gz
libvirt-python-v6-b9355e94901e925dd2ac23935f03ef2385cc262a.tar.xz
libvirt-python-v6-b9355e94901e925dd2ac23935f03ef2385cc262a.zip
python: return error if PyObject obj is NULL for unwrapper helper functions
The result is indeterminate for NULL argument to python functions as follows. It's better to return negative value in these situations. PyObject_IsTrue will segfault if the argument is NULL PyFloat_AsDouble(NULL) is -1.000000 PyLong_AsUnsignedLongLong(NULL) is 0.000000
Diffstat (limited to 'libvirt-override.c')
0 files changed, 0 insertions, 0 deletions