]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/libpy.c
compilation error fix (trailing comma in an enum)
[wxWidgets.git] / wxPython / src / libpy.c
index 7e400062a839584cd8fca2ec59e730fa6af70cde..1116e677df78433c162c5240281e31e109a434c8 100644 (file)
@@ -409,6 +409,8 @@ SWIG_GetPtrObj(PyObject *obj, void **ptr, char *type) {
       Py_DECREF(sobj);
   }
   str = PyString_AsString(sobj);
+  if (str == NULL)
+      return "";
   return SWIG_GetPtr(str,ptr,type);
 }