bug: fix codex

Signed-off-by: lyj_love_code <liangyujian2@huawei.com>
This commit is contained in:
lyj_love_code
2025-03-18 16:49:48 +08:00
parent 8433c6d680
commit 8c32a683fe
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 Huawei Device Co., Ltd.
* Copyright (c) 2020-2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -312,6 +312,9 @@ void RegisterFileWatcher(HiviewFile *fp, FileProc func, const char *path)
void UnRegisterFileWatcher(HiviewFile *fp, FileProc func)
{
if (fp == NULL || func == NULL) {
return;
}
(void)func;
fp->pFunc = NULL;
if (IsValidPath(fp->outPath) == 0) {