From 0d716c43c2c25f112aa97aa1dd9995ea000282b6 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Sat, 21 Oct 2000 01:41:13 +0000 Subject: [PATCH] Fixed default argument handling bug reported by Michael Scharf. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@929 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/python.swg | 1 - 1 file changed, 1 deletion(-) 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