forked from mirrors/linphone-iphone
Fix crash in StringUtilities::cStringArrayToCppList() with NULL as argument
This commit is contained in:
parent
28e6664aae
commit
df4cc8d707
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue