From: Victor Stinner Date: Thu, 3 Nov 2011 23:24:51 +0000 (+0100) Subject: Fix PyUnicode_EncodeCharmap() X-Git-Tag: v3.3.0a1~959 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc026c98d82afd4ef2041b5cdca780a47b752821;p=thirdparty%2FPython%2Fcpython.git Fix PyUnicode_EncodeCharmap() --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 0c5c485ebc2c..541ded8bacdd 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 *