mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 17:50:29 +02:00
(scm_module_reverse_lookup): Check that the obarray really is a
hashtable and do nothing if not.
This commit is contained in:
parent
62f548e16c
commit
6dc1cd1eec
1 changed files with 3 additions and 0 deletions
|
@ -568,6 +568,9 @@ scm_module_reverse_lookup (SCM module, SCM variable)
|
|||
obarray = SCM_MODULE_OBARRAY (module);
|
||||
}
|
||||
|
||||
if (!SCM_HASHTABLE_P (obarray))
|
||||
return SCM_BOOL_F;
|
||||
|
||||
/* XXX - We do not use scm_hash_fold here to avoid searching the
|
||||
whole obarray. We should have a scm_hash_find procedure. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue