Path for AT_EMPTY_PATH must not be NULL

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-02-21 07:03:12 +00:00
Родитель 32f3961fd6
Коммит 936b61d4ac
1 изменённых файлов: 1 добавлений и 1 удалений

2
file.c
Просмотреть файл

@ -1165,7 +1165,7 @@ statx_without_gvl(const char *path, struct statx *stx, unsigned int mask)
static int
fstatx_without_gvl(int fd, struct statx *stx, unsigned int mask)
{
no_gvl_statx_data data = {stx, fd, NULL, AT_EMPTY_PATH, mask};
no_gvl_statx_data data = {stx, fd, "", AT_EMPTY_PATH, mask};
/* call statx(2) with fd */
return (int)rb_thread_io_blocking_region(io_blocking_statx, &data, fd);