mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-09 21:20:50 +02:00
commit bash-20200626 snapshot
This commit is contained in:
@@ -349,6 +349,8 @@ unwind_protect_mem_internal (var, psize)
|
||||
|
||||
size = *(int *) psize;
|
||||
allocated = size + offsetof (UNWIND_ELT, sv.v.desired_setting[0]);
|
||||
if (allocated < sizeof (UNWIND_ELT))
|
||||
allocated = sizeof (UNWIND_ELT);
|
||||
elt = (UNWIND_ELT *)xmalloc (allocated);
|
||||
elt->head.next = unwind_protect_list;
|
||||
elt->head.cleanup = (Function *) restore_variable;
|
||||
|
||||
Reference in New Issue
Block a user