Do not pass 0 to PyObject_IsTrue

This commit is contained in:
wmayer
2012-12-30 23:16:56 +01:00
parent 15274f1b80
commit 0ebffa930a
7 changed files with 41 additions and 41 deletions

View File

@@ -82,7 +82,7 @@ FilterProc(int nCode, WPARAM wParam, LPARAM lParam) {
static PyObject *
FreeCADGui_showMainWindow(PyObject * /*self*/, PyObject *args)
{
PyObject* inThread = 0;
PyObject* inThread = Py_False;
if (!PyArg_ParseTuple(args, "|O!", &PyBool_Type, &inThread))
return NULL;