mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
(scm_set_smob_apply): protect tc value with scm_remember_upto_here_1.
Problem was noticed when m68k build segfaulted on document generation. Reported by Sam Hocevar <sam@zoy.org> (thanks).
This commit is contained in:
parent
e0a5032c60
commit
8d0c5006b9
1 changed files with 1 additions and 0 deletions
|
@ -449,6 +449,7 @@ scm_set_smob_apply (scm_t_bits tc, SCM (*apply) (),
|
|||
scm_smobs[SCM_TC2SMOBNUM (tc)].apply_2 = apply_2;
|
||||
scm_smobs[SCM_TC2SMOBNUM (tc)].apply_3 = apply_3;
|
||||
scm_smobs[SCM_TC2SMOBNUM (tc)].gsubr_type = type;
|
||||
scm_remember_upto_here_1 (tc);
|
||||
}
|
||||
|
||||
SCM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue