aboutsummaryrefslogtreecommitdiffstats
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>2012-03-08 16:56:13 -0300
commit620b46650ac150b17707aba54512a2fd06fde14c (patch)
tree7c4f22836937fd4d47fa276af542949a87ac5f3e
parent7202e2b8df7c499712229dd42a73a6b508fb10a0 (diff)
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 19beec357..8e5f2e613 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());