]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in unicode_decode_call_errorhandler_writer()
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Apr 2013 21:58:16 +0000 (23:58 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Apr 2013 21:58:16 +0000 (23:58 +0200)
Bug introduced by changeset 7ed9993d53b4.

Objects/unicodeobject.c

index c4157d8270f16775b1329e3a534d7f485a5da82e..d4cb9c985da1060e23055edeee64b02114f95755 100644 (file)
@@ -4124,7 +4124,7 @@ unicode_decode_call_errorhandler_writer(
     if (PyUnicode_GET_LENGTH(repunicode) > 1)
         writer->overallocate = 1;
     if (_PyUnicodeWriter_WriteStr(writer, repunicode) == -1)
-        return
+        goto onError;
 
     *endinpos = newpos;
     *inptr = *input + newpos;