Commit df4cc8d7 authored by François Grisez's avatar François Grisez

Fix crash in StringUtilities::cStringArrayToCppList() with NULL as argument

parent 28e6664a
......@@ -73,8 +73,8 @@ const char *StringUtilities::cppStringToC(const std::string &cppstr) {
std::list<std::string> StringUtilities::cStringArrayToCppList(const char **cArray) {
list<string> cppList;
int i;
for(i=0; cArray[i]!=NULL; i++) {
if (cArray == NULL) return cppList;
for(int i=0; cArray[i]!=NULL; i++) {
cppList.push_back(cArray[i]);
}
return cppList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment