diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-28 06:19:28 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-28 06:19:28 (GMT) |
commit | 7491d2a23a01842cc5b2f62de33a30ee791f68bd (patch) | |
tree | 7330f78edf9deacc217dfec288d6ce081955dd9f | |
parent | d03b073e9bc531bd21d3f6da9882c54e36975b0c (diff) | |
download | cpython-7491d2a23a01842cc5b2f62de33a30ee791f68bd.zip cpython-7491d2a23a01842cc5b2f62de33a30ee791f68bd.tar.gz cpython-7491d2a23a01842cc5b2f62de33a30ee791f68bd.tar.bz2 |
Try to get rid of a Coverity warning by consistently using origpending.
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 73689ef..340de18 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; |