Avoid using uninitialized variable.
This commit is contained in:
parent
7202e2b8df
commit
620b46650a
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ QDataStream &operator<<(QDataStream& out, const PyObjectWrapper& myObj)
|
||||||
}
|
}
|
||||||
Shiboken::AutoDecRef repr(PyObject_CallFunctionObjArgs(reduce_func, (PyObject*)myObj, NULL));
|
Shiboken::AutoDecRef repr(PyObject_CallFunctionObjArgs(reduce_func, (PyObject*)myObj, NULL));
|
||||||
if (repr.object()) {
|
if (repr.object()) {
|
||||||
const char* buff;
|
const char* buff = 0;
|
||||||
Py_ssize_t size = 0;
|
Py_ssize_t size = 0;
|
||||||
if (PyBytes_Check(repr.object())) {
|
if (PyBytes_Check(repr.object())) {
|
||||||
buff = PyBytes_AS_STRING(repr.object());
|
buff = PyBytes_AS_STRING(repr.object());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue