1
* eval.c (rb_require_safe): prevent loading twice from extensions.
2
fixed: [ruby-dev:29523]
4
diff -ruN ruby-1.8.5.orig/eval.c ruby-1.8.5/eval.c
5
--- ruby-1.8.5.orig/eval.c 2006-08-07 12:43:39.000000000 +0900
6
+++ ruby-1.8.5/eval.c 2006-09-19 15:08:59.000000000 +0900
7
@@ -7150,15 +7150,15 @@
11
+ /* loading ruby library should be serialized. */
13
+ loading_tbl = st_init_strtable();
16
+ ftptr = ruby_strdup(RSTRING_PTR(feature));
17
+ st_insert(loading_tbl, (st_data_t)ftptr, (st_data_t)curr_thread);
20
- /* loading ruby library should be serialized. */
22
- loading_tbl = st_init_strtable();
25
- ftptr = ruby_strdup(RSTRING(feature)->ptr);
26
- st_insert(loading_tbl, (st_data_t)ftptr, (st_data_t)curr_thread);