From 376cfa122d5a7fa2e63b514af8f4621a4cc40b5a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 17 Apr 2013 23:58:16 +0200 Subject: [PATCH] Fix typo in unicode_decode_call_errorhandler_writer() Bug introduced by changeset 7ed9993d53b4. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index c4157d8270..d4cb9c985d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; -- 2.50.1