fix null ptr deferef in pre_save python mutator call

This commit is contained in:
Andrea Fioraldi 2020-03-08 22:02:57 +01:00
parent 783f3b0957
commit a3161b902e

View File

@ -244,7 +244,7 @@ size_t pre_save_py(u8* buf, size_t buf_size, u8** out_buf) {
size_t out_buf_size;
PyObject *py_args, *py_value;
py_args = PyTuple_New(2);
py_args = PyTuple_New(1);
py_value = PyByteArray_FromStringAndSize(buf, buf_size);
if (!py_value) {