提交 232c5579 编写于 作者: O openharmony_ci 提交者: Gitee

!180 fix: init bugs

Merge pull request !180 from 熊磊/startup_init_lite1201
......@@ -196,9 +196,11 @@ int SplitString(char *srcPtr, const char *del, char **dstPtr, int maxNum)
int counter = 0;
while (dstPtr[counter] != NULL && (counter < maxNum)) {
counter++;
if (counter >= maxNum) {
break;
}
dstPtr[counter] = strtok_r(NULL, del, &buf);
}
dstPtr[counter] = NULL;
return counter;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册