fix: check return value.
This commit is contained in:
parent
4b50edccf0
commit
006900408a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue