* jcf-depend.c (add_entry): Fix test for first list entry.
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Feb 2000 04:16:42 +0000 (04:16 +0000)
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 20 Feb 2000 04:16:42 +0000 (04:16 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32072 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3bef122..2f82ebc 100644 (file)
@@ -1,3 +1,7 @@
+2000-02-19  Anthony Green  <green@cygnus.com>
+
+       * jcf-depend.c (add_entry): Fix test for first list entry.
+
 Sat Feb 19 18:43:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * class.c (build_class_ref, push_super_field): Set DECL_SIZE_UNIT.
index 53bd17b..3fb8c00 100644 (file)
@@ -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.