diff --git a/SWIG/Lib/python/python.swg b/SWIG/Lib/python/python.swg index 3634dc349..d0fc9a6c1 100644 --- a/SWIG/Lib/python/python.swg +++ b/SWIG/Lib/python/python.swg @@ -157,7 +157,6 @@ SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { int newref = 0; if (!obj || (obj == Py_None)) { - *ptr = 0; return 0; } #ifdef SWIG_COBJECT_TYPES