diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-27 12:38:28 +0200 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-27 12:38:28 +0200 |
| commit | bdb908ea5466bfa09869fd2e1e7f3b17fe0fb2ea (patch) | |
| tree | ab1e4e4a74bd5cb976d2473b5e76e9ba74b94edb /Modules/cjkcodecs/multibytecodec.c | |
| parent | 40005a7807bf2140d045c2bb8b4ef8af1e4770a0 (diff) | |
| parent | 4a1e70fc31d224786a32f950edaf73c8ea9c194d (diff) | |
| download | cpython-git-bdb908ea5466bfa09869fd2e1e7f3b17fe0fb2ea.tar.gz | |
Issue #20440: Applied yet one patch for using Py_SETREF.
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
Diffstat (limited to 'Modules/cjkcodecs/multibytecodec.c')
| -rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index e4547f75c9..70a606fae1 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -793,8 +793,7 @@ encoder_encode_stateful(MultibyteStatefulEncoderContext *ctx, ctx->errors, final ? MBENC_FLUSH | MBENC_RESET : 0); if (r == NULL) { /* recover the original pending buffer */ - Py_CLEAR(ctx->pending); - ctx->pending = origpending; + Py_SETREF(ctx->pending, origpending); origpending = NULL; goto errorexit; } |
