1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-07-01 07:20:20 +02:00

Use alloca in change_option_setting

* libguile/options.c (change_option_setting): alloca instead of
scm_allocate_sloppy.
This commit is contained in:
Andy Wingo 2025-06-20 12:48:07 +02:00
parent f2ad6525e6
commit c800496d27

View file

@ -184,8 +184,7 @@ change_option_setting (SCM args, scm_t_option options[], const char *s,
unsigned int i;
scm_t_bits *new_vals;
new_vals = scm_allocate_sloppy (SCM_I_CURRENT_THREAD,
options_length (options) * sizeof (scm_t_bits));
new_vals = alloca (options_length (options) * sizeof (scm_t_bits));
for (i = 0; options[i].name; ++i)
{