On Wed, 09 Jun 2010 18:07:37 +0200, Matteo Bertozzi <[email protected]> wrote: > I've a segfault for a non return. > > sipParseErr is NULL but is checked agains Py_None which is different > from NULL. > >> PyObject *sipParseErr = NULL; >> >> ... >> >> Py_XDECREF(sipParseErr); >> >> if (sipParseErr == Py_None) >> return NULL; >> >> /* Raise an exception if the arguments couldn't be parsed. */ >> sipNoMethod(sipParseErr, sipName_TestSipErr, sipName___getitem__, NULL); > > A simple solution is to check for (sipParseErr == NULL || sipParseErr == > Py_None). > Or set PyObject *sipParseErr = Py_None;
That's not the fix - but it should be fixed in tonight's snapshot. Thanks, Phil _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
