diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-10-06 18:49:14 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:21 -0300 |
commit | 7d8ed0c40f5f3144694ce5fbecad006652169285 (patch) | |
tree | a17be1be2916733a9d8a4c8487145713e2204000 /libshiboken | |
parent | 8d819060e031499119e6bb0ee8af6c4059a019dd (diff) |
Avoid string variable to be used unitialized.
Diffstat (limited to 'libshiboken')
-rw-r--r-- | libshiboken/helper.cpp | 2 |
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)); } |