about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-04-05 20:44:58 +0000
committerEric Wong <normalperson@yhbt.net>2013-04-05 22:30:07 +0000
commit803b2c842701ca74d504b61e8d35fd801e00c614 (patch)
tree6e33646e4a716ecc08e5797a809b2a07a11211bc
parentece3095074fb5cf8c09d489f311ad990a4e0076b (diff)
downloadmahoro-803b2c842701ca74d504b61e8d35fd801e00c614.tar.gz
cleanup: make cMahoro an automatic variable
We do not access cMahoro outside of Init_mahoro, so it does
not need to be global (rb_define_class takes care of making
the Object VM-global).
-rw-r--r--mahoro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mahoro.c b/mahoro.c
index 71be82a..a30946c 100644
--- a/mahoro.c
+++ b/mahoro.c
@@ -17,7 +17,6 @@
 #  define RSTRING_PTR(s)->ptr
 #endif
 
-static VALUE cMahoro;
 static VALUE eMahoroError;
 static ID id_to_path;
 
@@ -353,6 +352,7 @@ mahoro_load(self, path)
 
 void Init_mahoro(void)
 {
+        VALUE cMahoro;
         /*
          * Mahoro is a simple interface to libmagic.
          *