work around glob brokenness on pre-5.14
[gitmo/Package-Stash-XS.git] / typemap
diff --git a/typemap b/typemap
index 8fd59c8..fc3c031 100644 (file)
--- a/typemap
+++ b/typemap
@@ -10,6 +10,7 @@ T_VARSPEC
         _deconstruct_variable_hash((HV*)SvRV($arg), &$var);
     else
         croak(\"varspec must be a string or a hashref\");
+    _check_varspec_is_valid(&$var);
 
 T_VARTYPE
     if (!SvPOK($arg))