mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-13 02:03:57 +01:00
commit bash-20200626 snapshot
This commit is contained in:
1 parent
6edcd70089
commit
dd4e3abc5c
9 files changed
+78
-29
No files matched your search
@@ -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