Fix possible crash
Thanks to - http://forum.xchat.org/viewtopic.php?f=5&t=7558
This commit is contained in:
parent
ba3f4daee8
commit
44a2ed5a97
|
@ -919,9 +919,10 @@ Context_compare(ContextObject *a, ContextObject *b, int op)
|
|||
else
|
||||
{
|
||||
PyErr_SetString(PyExc_TypeError, "contexts are either equal or not equal");
|
||||
ret = NULL;
|
||||
ret = Py_None;
|
||||
}
|
||||
|
||||
Py_INCREF(ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue