aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-10-06 18:49:14 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:21 -0300
commit7d8ed0c40f5f3144694ce5fbecad006652169285 (patch)
treea17be1be2916733a9d8a4c8487145713e2204000 /libshiboken
parent8d819060e031499119e6bb0ee8af6c4059a019dd (diff)
Avoid string variable to be used unitialized.
Diffstat (limited to 'libshiboken')
-rw-r--r--libshiboken/helper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/helper.cpp b/libshiboken/helper.cpp
index cbb41e8f1..5213c514e 100644
--- a/libshiboken/helper.cpp
+++ b/libshiboken/helper.cpp
@@ -58,7 +58,7 @@ bool sequenceToArgcArgv(PyObject* argList, int* argc, char*** argv, const char*
} else {
for (int i = 0; i < numArgs; ++i) {
PyObject* item = PySequence_Fast_GET_ITEM(args.object(), i);
- char* string;
+ char* string = 0;
if (Shiboken::String::check(item)) {
string = strdup(Shiboken::String::toCString(item));
}