]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Safer appdata
authorZdeněk Pavlas <zpavlas@redhat.com>
Fri, 2 Mar 2012 13:54:45 +0000 (14:54 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 9 Mar 2012 13:54:02 +0000 (14:54 +0100)
bindings/solv.i

index 14bc98438631cea9729616a2a15dac049a3773fb..abb28a7bdc159a2f24b9a154cc641aa088941bf1 100644 (file)
@@ -299,7 +299,7 @@ SWIG_Perl_NewArrayObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int f
 #if defined(SWIGPYTHON)
 typedef PyObject *AppObjectPtr;
 %typemap(out) AppObjectPtr {
-  $result = $1;
+  $result = $1 ? $1 : Py_None;
   Py_INCREF($result);
 }
 #endif