mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
Update cli-tests/file-stat tests
This commit is contained in:
@ -202,7 +202,7 @@ int UTIL_isFdRegularFile(int fd)
|
||||
stat_t statbuf;
|
||||
int ret;
|
||||
UTIL_TRACE_CALL("UTIL_isFdRegularFile(%d)", fd);
|
||||
ret = UTIL_fstat(fd, "", &statbuf) && UTIL_isRegularFileStat(&statbuf);
|
||||
ret = fd >= 0 && UTIL_fstat(fd, "", &statbuf) && UTIL_isRegularFileStat(&statbuf);
|
||||
UTIL_TRACE_RET(ret);
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user