diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 3bef12260444..2f82ebcb1c7e 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2000-02-19 Anthony Green + + * jcf-depend.c (add_entry): Fix test for first list entry. + Sat Feb 19 18:43:13 2000 Richard Kenner * class.c (build_class_ref, push_super_field): Set DECL_SIZE_UNIT. diff --git a/gcc/java/jcf-depend.c b/gcc/java/jcf-depend.c index 53bd17bcd319..3fb8c00bb159 100644 --- a/gcc/java/jcf-depend.c +++ b/gcc/java/jcf-depend.c @@ -94,7 +94,7 @@ add_entry (entp, name) ent->file = xstrdup (name); ent->next = NULL; - if (last == ent) + if (last == *entp) { // This is only true the first time through, when the entry list // is empty.