Initialize buf.outobj in multibyte encoder (closes issue #24702).
Patch by pankaj.s01.
This commit is contained in:
parent
04fac8abf1
commit
81c670d540
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue