projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed bug in generation of thumb scroll events
[wxWidgets.git]
/
wxPython
/
src
/
libpy.c
diff --git
a/wxPython/src/libpy.c
b/wxPython/src/libpy.c
index 7e400062a839584cd8fca2ec59e730fa6af70cde..1116e677df78433c162c5240281e31e109a434c8 100644
(file)
--- a/
wxPython/src/libpy.c
+++ b/
wxPython/src/libpy.c
@@
-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);
}