diff options
author | Osier Yang <jyang@redhat.com> | 2012-05-07 19:02:12 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-05-09 10:04:14 +0800 |
commit | b2c9179933763453a0f7848b136c12e5bd7ec0a9 (patch) | |
tree | 49856f37d1e75c8aa6d075dd122eafb9824319a0 /libvirt-override.c | |
parent | 410cb3c0e8a7e6d6db41a83b186ba2b2483822cf (diff) | |
download | libvirt-python-v6-b2c9179933763453a0f7848b136c12e5bd7ec0a9.tar.gz libvirt-python-v6-b2c9179933763453a0f7848b136c12e5bd7ec0a9.tar.xz libvirt-python-v6-b2c9179933763453a0f7848b136c12e5bd7ec0a9.zip |
python: Fix the forward_null error in Python binding codeslibvirt-0.9.10-21.el6_3.8libvirt-0.9.10-21.el6_3.7libvirt-0.9.10-21.el6_3.6libvirt-0.9.10-21.el6_3.5libvirt-0.9.10-21.el6_3.4libvirt-0.9.10-21.el6_3.3libvirt-0.9.10-21.el6_3.2libvirt-0.9.10-21.el6_3.1libvirt-0.9.10-21.el6libvirt-0.9.10-20.el6libvirt-0.9.10-19.el6libvirt-0.9.10-18.el6libvirt-0.9.10-17.el6
This patch resolves: https://bugzilla.redhat.com/show_bug.cgi?id=771021
(cherry picked from commit b80f4db9931ceea4bec1d178322058df77ece7a4)
Related coverity log:
Error: FORWARD_NULL:
/builddir/build/BUILD/libvirt-0.9.10/python/libvirt-override.c:355:
assign_zero: Assigning: "params" = 0.
/builddir/build/BUILD/libvirt-0.9.10/python/libvirt-override.c:458:
var_deref_model: Passing null variable "params" to function
"getPyVirTypedParameter", which dereferences it. (The dereference is assumed on
the basis of the 'nonnull' parameter attribute.)
Diffstat (limited to 'libvirt-override.c')
-rw-r--r-- | libvirt-override.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-override.c b/libvirt-override.c index d9dc1b5..ba5ac28 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -71,7 +71,7 @@ static char *py_str(PyObject *obj) /* Helper function to convert a virTypedParameter output array into a * Python dictionary for return to the user. Return NULL on failure, * after raising a python exception. */ -static PyObject * ATTRIBUTE_NONNULL(1) +static PyObject * getPyVirTypedParameter(const virTypedParameterPtr params, int nparams) { PyObject *key, *val, *info; |