From fc026c98d82afd4ef2041b5cdca780a47b752821 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 4 Nov 2011 00:24:51 +0100 Subject: Fix PyUnicode_EncodeCharmap() --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 0c5c485..541ded8 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -8397,7 +8397,7 @@ PyUnicode_EncodeCharmap(const Py_UNICODE *p, return NULL; result = _PyUnicode_EncodeCharmap(unicode, mapping, errors); Py_DECREF(unicode); - return NULL; + return result; } PyObject * -- cgit v0.12