Commit 280e521f by Jeffrey A Law Committed by Jeff Law

tree.c (restore_tree_status): Do not dereference a null pointer.

        * tree.c (restore_tree_status): Do not dereference a null pointer.
Brought over from devo.  SHould fix 921215-1.c compilation failures.

From-SVN: r17225
parent 95b8c0c8
Wed Dec 24 22:34:55 1997 Jeffrey A Law (law@cygnus.com)
* tree.c (restore_tree_status): Do not dereference a null pointer.
Tue Dec 23 12:56:46 1997 Paul Eggert <eggert@twinsun.com>:
* genattrtab.c (main): Check HAVE_{G,S}ETRLIMIT in addition to
......
......@@ -445,13 +445,16 @@ restore_tree_status (p, context)
{
struct simple_obstack_stack *current, **p = &toplev_inline_obstacks;
while ((*p)->obstack != function_maybepermanent_obstack)
p = &((*p)->next);
current = *p;
*p = current->next;
if ((*p) != NULL)
{
while ((*p)->obstack != function_maybepermanent_obstack)
p = &((*p)->next);
current = *p;
*p = current->next;
current->next = extra_inline_obstacks;
extra_inline_obstacks = current;
current->next = extra_inline_obstacks;
extra_inline_obstacks = current;
}
}
obstack_free (function_obstack, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment