clear codecheck warning

Signed-off-by: yiyajun <yiyajun@huawei.com>
This commit is contained in:
yiyajun 2023-05-25 09:38:19 +08:00
parent 2c70361c81
commit 5c6d2ba10f
2 changed files with 7 additions and 4 deletions

View File

@ -84,7 +84,10 @@ bool IfConfig::ExecCommand(const std::vector<std::string> &vecCommandArg)
for (i = 0; i < argvSize && i < MAX_COMMAND_ARG; i++) {
execveStr[i] = vecCommandArg[i].c_str();
}
execveStr[i] = nullptr;
if (i < MAX_COMMAND_ARG) {
execveStr[i] = nullptr;
}
char *env[] = {nullptr};
close(fd[0]);
dup2(fd[1], STDOUT_FILENO);

View File

@ -36,13 +36,13 @@
- DevEco Studio For OpenHarmony是基于IntelliJ IDEA Community开源版本打造面向OpenHarmony全场景多设备的一站式集成开发环境IDEDevEco Studio 3.0已适配ArkUI声明式编程范式、ArkCompiler方舟编译同时提供低代码开发、双向预览、构建工具、模拟器、调试调优、信息中心等功能为开发者提供工程模板创建、开发、编译、调试、发布等E2E的OpenHarmony应用/服务开发。
2. 下载链接: [DevEco Studio和SDK下载和升级](https://developer.harmonyos.com/cn/develop/deveco-studio#download_beta)
2. 下载链接: [DevEco Studio和SDK下载和升级](https://developer..com/cn/develop/deveco-studio#download_beta)
3. 安装步骤: [下载与安装软件-快速开始 DevEco Studio For OpenHarmony使用指南-工具 ](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-download-software-0000001218760592)
3. 安装步骤: [下载与安装软件-快速开始 DevEco Studio For OpenHarmony使用指南-工具 ](https://developer..com/cn/docs/documentation/doc-guides/ohos-download-software-0000001218760592)
建议在选项界面都勾选DevEco StudioAdd “bin” folder to the PATHAdd "Open Folder as Project"
4. 配置开发环境:[配置开发环境-快速开始 DevEco Studio For OpenHarmony使用指南-工具 ](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-setting-up-environment-0000001263160443)
4. 配置开发环境:[配置开发环境-快速开始 DevEco Studio For OpenHarmony使用指南-工具 ](https://developer..com/cn/docs/documentation/doc-guides/ohos-setting-up-environment-0000001263160443)
#### 如何导入程序