summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index ce5e340b3e..899389848b 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1174,7 +1174,9 @@ eval_string_from_file_helper(void *data) {
VALUE
ruby_eval_string_from_file_protect(const char *str, const char *filename, int *state) {
- struct eval_string_from_file_arg arg = { str, filename };
+ struct eval_string_from_file_arg arg;
+ arg.str = str;
+ arg.filename = filename;
return rb_protect((VALUE (*)(VALUE))eval_string_from_file_helper, (VALUE)&arg, state);
}