[libvirt] [PATCH python] override: Return NULL on python failure in getCPUModelNames

Cole Robinson crobinso at redhat.com
Thu Mar 20 17:58:10 UTC 2014


Eric pointed this out on the last patch, but I pushed it before noticing
his message.
---
 libvirt-override.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-override.c b/libvirt-override.c
index 71e241e..2532400 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -2350,7 +2350,7 @@ done:
 
 error:
     Py_XDECREF(rv);
-    rv = VIR_PY_NONE;
+    rv = NULL;
     goto done;
 }
 #endif /* LIBVIR_CHECK_VERSION(1, 1, 3) */
-- 
1.8.5.3




More information about the libvir-list mailing list