mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Try to get rid of a Coverity warning by consistently using origpending.
This commit is contained in:
parent
d03b073e9b
commit
7491d2a23a
1 changed files with 1 additions and 1 deletions
|
|
@ -735,7 +735,7 @@ encoder_encode_stateful(MultibyteStatefulEncoderContext *ctx,
|
||||||
datalen = PyUnicode_GET_SIZE(unistr);
|
datalen = PyUnicode_GET_SIZE(unistr);
|
||||||
origpending = ctx->pendingsize;
|
origpending = ctx->pendingsize;
|
||||||
|
|
||||||
if (ctx->pendingsize > 0) {
|
if (origpending > 0) {
|
||||||
inbuf_tmp = PyMem_New(Py_UNICODE, datalen + ctx->pendingsize);
|
inbuf_tmp = PyMem_New(Py_UNICODE, datalen + ctx->pendingsize);
|
||||||
if (inbuf_tmp == NULL)
|
if (inbuf_tmp == NULL)
|
||||||
goto errorexit;
|
goto errorexit;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue