mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-01 15:20:34 +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:
parent
f2ad6525e6
commit
c800496d27
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue