jcf-depend.c (add_entry): Fixed bug where list was always replaced with latest entry.

2000-04-03  Matt Welsh  <mdw@cs.berkeley.edu>

	* jcf-depend.c (add_entry): Fixed bug where list was always replaced
	with latest entry.

From-SVN: r32936
This commit is contained in:
Matt Welsh 2000-04-05 18:50:22 +00:00 committed by Tom Tromey
parent 07edd4c51e
commit 4200941b0f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-04-03 Matt Welsh <mdw@cs.berkeley.edu>
* jcf-depend.c (add_entry): Fixed bug where list was always replaced
with latest entry.
2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* boehm.c (mark_reference_fields, set_bit): Prototype.

View File

@ -94,7 +94,7 @@ add_entry (entp, name)
ent->file = xstrdup (name);
ent->next = NULL;
if (last == *entp)
if (last == NULL)
{
// This is only true the first time through, when the entry list
// is empty.