[Python-checkins] r43375 - python/trunk/Modules/cjkcodecs/multibytecodec.c
neal.norwitz
python-checkins at python.org
Tue Mar 28 08:19:28 CEST 2006
Author: neal.norwitz
Date: Tue Mar 28 08:19:28 2006
New Revision: 43375
Modified:
python/trunk/Modules/cjkcodecs/multibytecodec.c
Log:
Try to get rid of a Coverity warning by consistently using origpending.
Modified: python/trunk/Modules/cjkcodecs/multibytecodec.c
==============================================================================
--- python/trunk/Modules/cjkcodecs/multibytecodec.c (original)
+++ python/trunk/Modules/cjkcodecs/multibytecodec.c Tue Mar 28 08:19:28 2006
@@ -735,7 +735,7 @@
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;
More information about the Python-checkins
mailing list