Kaydet (Commit) 7491d2a2 authored tarafından Neal Norwitz's avatar Neal Norwitz

Try to get rid of a Coverity warning by consistently using origpending.

üst d03b073e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment