mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +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);
|
||||
origpending = ctx->pendingsize;
|
||||
|
||||
if (ctx->pendingsize > 0) {
|
||||
if (origpending > 0) {
|
||||
inbuf_tmp = PyMem_New(Py_UNICODE, datalen + ctx->pendingsize);
|
||||
if (inbuf_tmp == NULL)
|
||||
goto errorexit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue