diff options
-rw-r--r-- | ext/mall/mall.c.erb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/mall/mall.c.erb b/ext/mall/mall.c.erb index 1e15662..be46163 100644 --- a/ext/mall/mall.c.erb +++ b/ext/mall/mall.c.erb @@ -1,8 +1,6 @@ #include <ruby.h> #include <malloc.h> -static VALUE mMall; - /* * struct mallinfo { * int arena; // non-mmapped space allocated from system @@ -138,7 +136,7 @@ static VALUE xml(int argc, VALUE *argv, VALUE self) void Init_mall(void) { - mMall = rb_define_module("Mall"); + VALUE mMall = rb_define_module("Mall"); rb_define_singleton_method(mMall, "opt", opt, 2); rb_define_singleton_method(mMall, "info", info, 0); #ifdef HAVE_MALLOC_TRIM |