From: Neal Norwitz Date: Tue, 28 Mar 2006 06:19:28 +0000 (+0000) Subject: Try to get rid of a Coverity warning by consistently using origpending. X-Git-Tag: v2.5a0~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7491d2a23a01842cc5b2f62de33a30ee791f68bd;p=python Try to get rid of a Coverity warning by consistently using origpending. --- diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 73689ef8e4..340de180e0 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -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;