* 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
+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
{
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);