aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
diff options
context:
space:
mode:
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));
}