ruby-changes:54902
From: nobu <ko1@a...>
Date: Thu, 21 Feb 2019 16:03:17 +0900 (JST)
Subject: [ruby-changes:54902] nobu:r67107 (trunk): Path for AT_EMPTY_PATH must not be NULL
nobu 2019-02-21 16:03:12 +0900 (Thu, 21 Feb 2019) New Revision: 67107 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67107 Log: Path for AT_EMPTY_PATH must not be NULL Modified files: trunk/file.c Index: file.c =================================================================== --- file.c (revision 67106) +++ file.c (revision 67107) @@ -1165,7 +1165,7 @@ statx_without_gvl(const char *path, stru https://github.com/ruby/ruby/blob/trunk/file.c#L1165 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/