diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/modsupport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c index 56bde9e..9344f4d 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -345,9 +345,10 @@ do_mkvalue(p_format, p_va) else { PyObject *v; v = va_arg(*p_va, PyObject *); - if (v != NULL) + if (v != NULL) { if (*(*p_format - 1) != 'N') Py_INCREF(v); + } else if (!PyErr_Occurred()) /* If a NULL was passed * because a call that should |