summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-28 06:19:28 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-28 06:19:28 (GMT)
commit7491d2a23a01842cc5b2f62de33a30ee791f68bd (patch)
tree7330f78edf9deacc217dfec288d6ce081955dd9f /Modules/cjkcodecs
parentd03b073e9bc531bd21d3f6da9882c54e36975b0c (diff)
downloadcpython-7491d2a23a01842cc5b2f62de33a30ee791f68bd.zip
cpython-7491d2a23a01842cc5b2f62de33a30ee791f68bd.tar.gz
cpython-7491d2a23a01842cc5b2f62de33a30ee791f68bd.tar.bz2
Try to get rid of a Coverity warning by consistently using origpending.
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r--Modules/cjkcodecs/multibytecodec.c2
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;