mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
(enter_namespace): Fix reallocation of
namespace_stack.
This commit is contained in:
parent
67f2e119e3
commit
04dae60b46
@ -1156,8 +1156,9 @@ enter_namespace (name)
|
||||
if (namespace_sp == namespace_stack_size)
|
||||
{
|
||||
int size = max (10, 2 * namespace_stack_size);
|
||||
namespace_stack = (struct sym **) xrealloc ((void *)namespace_stack,
|
||||
size);
|
||||
namespace_stack
|
||||
= (struct sym **) xrealloc ((void *)namespace_stack,
|
||||
size * sizeof *namespace_stack);
|
||||
namespace_stack_size = size;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user