(scm_eval_string_in_module): Validate second arg to be a module.
authorMarius Vollmer <mvo@zagadka.de>
Sun, 17 Nov 2002 10:35:49 +0000 (10:35 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Sun, 17 Nov 2002 10:35:49 +0000 (10:35 +0000)
Thanks to Arno Peters!

libguile/strports.c

index 107fedd..419a2df 100644 (file)
@@ -481,6 +481,8 @@ SCM_DEFINE (scm_eval_string_in_module, "eval-string", 1, 1, 0,
                            FUNC_NAME);
   if (SCM_UNBNDP (module))
     module = scm_current_module ();
+  else
+    SCM_VALIDATE_MODULE (2, module);
   return scm_c_call_with_current_module (module,
                                         inner_eval_string, (void *)port);
 }