about summary refs log tree commit homepage
path: root/ext/unicorn_http/httpdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/unicorn_http/httpdate.c')
-rw-r--r--ext/unicorn_http/httpdate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/unicorn_http/httpdate.c b/ext/unicorn_http/httpdate.c
index 2381cff..b59d038 100644
--- a/ext/unicorn_http/httpdate.c
+++ b/ext/unicorn_http/httpdate.c
@@ -64,13 +64,13 @@ static VALUE httpdate(VALUE self)
         return buf;
 }
 
-void init_unicorn_httpdate(VALUE mark_ary)
+void init_unicorn_httpdate(void)
 {
         VALUE mod = rb_define_module("Unicorn");
         mod = rb_define_module_under(mod, "HttpResponse");
 
         buf = rb_str_new(0, buf_capa - 1);
-        rb_ary_push(mark_ary, buf);
+        rb_gc_register_mark_object(buf);
         buf_ptr = RSTRING_PTR(buf);
         httpdate(Qnil);