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

This commit is contained in:
Neal Norwitz 2006-03-28 06:19:28 +00:00
parent d03b073e9b
commit 7491d2a23a
1 changed files with 1 additions and 1 deletions

View File

@ -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;