Commit 5b3ea3f5 authored by David Gobbi's avatar David Gobbi Committed by Marcus D. Hanwell
Browse files

BUG: GetPointerFromSpecialObject should default newobj to NULL

parent 4c16931a
......@@ -1246,6 +1246,9 @@ PyObject *vtkPythonUtil::GetSpecialObjectFromPointer(
void *vtkPythonUtil::GetPointerFromSpecialObject(
PyObject *obj, const char *result_type, PyObject **newobj)
{
// Clear newobj, it will only be set if a new obj is created
*newobj = 0;
// The type name, for diagnostics
const char *object_type = obj->ob_type->tp_name;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment