Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed mod_ruby_setup_loadpath() for Ruby 1.8.

  • Loading branch information...
commit c81a5f644a3cd214f185e58c12bb0195d16cc4a5 1 parent 07d423d
shugo authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod_ruby.c
View
7 mod_ruby.c
@@ -549,9 +549,14 @@ void mod_ruby_setup_loadpath(ruby_server_config *sconf,
{
int i, n;
char **paths;
- VALUE load_path = GET_LOAD_PATH();
+ VALUE load_path;
+#ifdef RUBY_VM
+ load_path = GET_LOAD_PATH();
rb_ary_clear(load_path);
+#else
+ rb_load_path = load_path = rb_ary_new();
+#endif
for (i = 0; i < RARRAY_LEN(default_load_path); i++) {
rb_ary_push(load_path, rb_str_dup(RARRAY_PTR(default_load_path)[i]));
}
Please sign in to comment.
Something went wrong with that request. Please try again.