summaryrefslogtreecommitdiffstats
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>2011-10-06 19:04:13 -0300
commit1fbc44dbcdcb67594cd85c9efe956c52bb2f4463 (patch)
tree6d4e88ef430def105689205c69be1a4c861e91bd /libshiboken
parentb2af41afec928741635950a6b60dbf9c3cb926ea (diff)
downloadshiboken-1fbc44dbcdcb67594cd85c9efe956c52bb2f4463.tar.gz
shiboken-1fbc44dbcdcb67594cd85c9efe956c52bb2f4463.tar.xz
shiboken-1fbc44dbcdcb67594cd85c9efe956c52bb2f4463.zip
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 cbb41e8f..5213c514 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));
}