Initialize buf.outobj in multibyte encoder (closes issue #24702).

Patch by pankaj.s01.
This commit is contained in:
Serhiy Storchaka 2015-07-24 07:44:42 +03:00
parent 04fac8abf1
commit 81c670d540
1 changed files with 1 additions and 0 deletions

View File

@ -478,6 +478,7 @@ multibytecodec_encode(MultibyteCodec *codec,
return PyString_FromString("");
buf.excobj = NULL;
buf.outobj = NULL;
buf.inbuf = buf.inbuf_top = *data;
buf.inbuf_end = buf.inbuf_top + datalen;