mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
(scm_eval_string_in_module): Validate second arg to be a module.
Thanks to Arno Peters!
This commit is contained in:
parent
80b28865d1
commit
aeec5be115
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue