fix: check return value.

This commit is contained in:
Haojun Liao 2024-11-10 12:23:01 +08:00
parent 4b50edccf0
commit 006900408a
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ int32_t taosGetPIdByName(const char* name, int32_t* pPId) {
}
}
closedir(dir);
TAOS_UNUSED(closedir(dir));
if ((*pPId) == -1) {
return TAOS_SYSTEM_ERROR(ESRCH);