* jcf-depend.c (add_entry): Fix test for first list entry.
authorAnthony Green <green@cygnus.com>
Sun, 20 Feb 2000 04:16:42 +0000 (04:16 +0000)
committerAnthony Green <green@gcc.gnu.org>
Sun, 20 Feb 2000 04:16:42 +0000 (04:16 +0000)
From-SVN: r32072

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.