From 936b61d4acffc632608d1c1990b02e6a791107d0 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 21 Feb 2019 07:03:12 +0000 Subject: [PATCH] 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 --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);