summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-10-10 15:01:03 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-10-10 15:01:03 -0300
commitec04e5e9654ba96fc232b32167d1dbcb86649d65 (patch)
treefeb5ce7dff8fe4084e96cb5ae13a8e7cb631921f
parent41f66d647136298310321efecbe7dcef4af3c360 (diff)
downloadpyside-ec04e5e9654ba96fc232b32167d1dbcb86649d65.tar.gz
pyside-ec04e5e9654ba96fc232b32167d1dbcb86649d65.tar.xz
pyside-ec04e5e9654ba96fc232b32167d1dbcb86649d65.zip
Avoid using uninitialized variable.
-rw-r--r--libpyside/signalmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpyside/signalmanager.cpp b/libpyside/signalmanager.cpp
index 19beec3..8e5f2e6 100644
--- a/libpyside/signalmanager.cpp
+++ b/libpyside/signalmanager.cpp
@@ -126,7 +126,7 @@ QDataStream &operator<<(QDataStream& out, const PyObjectWrapper& myObj)
}
Shiboken::AutoDecRef repr(PyObject_CallFunctionObjArgs(reduce_func, (PyObject*)myObj, NULL));
if (repr.object()) {
- const char* buff;
+ const char* buff = 0;
Py_ssize_t size = 0;
if (PyBytes_Check(repr.object())) {
buff = PyBytes_AS_STRING(repr.object());