summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-03 23:24:51 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-03 23:24:51 (GMT)
commitfc026c98d82afd4ef2041b5cdca780a47b752821 (patch)
treeff35b25ea9c84b556115d7907d76d90aaf2a0736 /Objects
parent7931d9a9514a727ac476f4850406a7d8f5e1c7f7 (diff)
downloadcpython-fc026c98d82afd4ef2041b5cdca780a47b752821.zip
cpython-fc026c98d82afd4ef2041b5cdca780a47b752821.tar.gz
cpython-fc026c98d82afd4ef2041b5cdca780a47b752821.tar.bz2
Fix PyUnicode_EncodeCharmap()
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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 *