From: Stefan Behnel Date: Tue, 2 Sep 2008 09:17:48 +0000 (+0200) Subject: safety fix X-Git-Tag: 0.9.9.2.beta~63^2~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7539be679783892192bcfaca81ffa0801bdb334b;p=cython.git safety fix --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index f3b5bd98..2738fd66 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -4881,11 +4881,9 @@ void INLINE __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; - if (*type) { - Py_INCREF(*type); - Py_XINCREF(*value); - Py_XINCREF(*tb); - } + Py_XINCREF(*type); + Py_XINCREF(*value); + Py_XINCREF(*tb); } void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb) {