tiny tweaks
gfx [Mon, 17 Aug 2009 04:15:39 +0000 (13:15 +0900)]
xs/Package.xs

index acfeb4c..4e7087d 100644 (file)
@@ -382,7 +382,7 @@ PREINIT:
     GV* gv;
     SV* sv;
 CODE:
-    { /* parse options */
+    if(items > 2){ /* parse options */
         I32 i;
         if((items % 2) != 0){
             croak("Odd number of arguments for get_package_symbol()");