未验证 提交 1d0f3f03 编写于 作者: O openharmony_ci 提交者: Gitee

!1397 修复FindFstabItemForPath接口可能死循环问题

Merge pull request !1397 from cheng_jinsong/codex
...@@ -267,7 +267,7 @@ FstabItem *FindFstabItemForPath(Fstab fstab, const char *path) ...@@ -267,7 +267,7 @@ FstabItem *FindFstabItemForPath(Fstab fstab, const char *path)
{ {
FstabItem *item = NULL; FstabItem *item = NULL;
if (path == NULL || *path == '\0') { if (path == NULL || *path == '\0' || *path != '/') {
return NULL; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册