OSDN Git Service

2000-04-03 Matt Welsh <mdw@cs.berkeley.edu>
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Apr 2000 18:50:22 +0000 (18:50 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Apr 2000 18:50:22 +0000 (18:50 +0000)
* jcf-depend.c (add_entry): Fixed bug where list was always replaced
with latest entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32936 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/jcf-depend.c

index 7c9c053..919c7b1 100644 (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.
index 3fb8c00..79d060a 100644 (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.