explicitly don't pass args to the accessors
Jesse Luehrs [Sat, 13 Nov 2010 03:42:40 +0000 (21:42 -0600)]
Stash.xs

index dec97df..7cb0705 100644 (file)
--- a/Stash.xs
+++ b/Stash.xs
@@ -168,7 +168,7 @@ HV *_get_namespace(SV *self)
     XPUSHs(self);
     PUTBACK;
 
-    call_method("namespace", G_SCALAR);
+    call_method("namespace", G_SCALAR | G_NOARGS);
 
     SPAGAIN;
     ret = POPs;
@@ -186,7 +186,7 @@ SV *_get_name(SV *self)
     XPUSHs(self);
     PUTBACK;
 
-    call_method("name", G_SCALAR);
+    call_method("name", G_SCALAR | G_NOARGS);
 
     SPAGAIN;
     ret = POPs;