diff options
author | TingPing <tngpng@gmail.com> | 2013-05-30 22:23:00 -0300 |
---|---|---|
committer | TingPing <tngpng@gmail.com> | 2013-05-30 22:23:00 -0300 |
commit | 855c20501baba9e0bcda546b6c07f20dc5648659 (patch) | |
tree | 89a3d94175962790566164ae1b20df63bef687c1 /plugins/python/python.c | |
parent | 945251c6b82d5f42092cd2849591aecb9d9e0af8 (diff) |
fix crash
Diffstat (limited to 'plugins/python/python.c')
-rw-r--r-- | plugins/python/python.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c index 8b768799..2976faeb 100644 --- a/plugins/python/python.c +++ b/plugins/python/python.c @@ -934,10 +934,10 @@ Context_compare(ContextObject *a, ContextObject *b, int op) else { PyErr_SetString(PyExc_TypeError, "contexts are either equal or not equal"); - Py_INCREF(Py_None); ret = Py_None; } + Py_INCREF(ret); return ret; } |