aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-21 07:03:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-21 07:03:12 +0000
commit936b61d4acffc632608d1c1990b02e6a791107d0 (patch)
tree3355deab437a20fbbed44823a6ac2e099c0d8662 /file.c
parent32f3961fd687d1096f444d09c78d7dcd247649d1 (diff)
downloadruby-936b61d4acffc632608d1c1990b02e6a791107d0.tar.gz
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
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 26a5c3c45e..b558705e13 100644
--- a/file.c
+++ b/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);