aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
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 55b0f617d5..33327a6f96 100644
--- a/file.c
+++ b/file.c
@@ -4595,7 +4595,7 @@ rb_find_file(VALUE path)
rb_raise(rb_eSecurityError, "loading from non-absolute path %s", f);
}
- load_path = rb_get_load_path();
+ RB_GC_GUARD(load_path) = rb_get_load_path();
if (load_path) {
long i;