From: Anthony Green Date: Sun, 20 Feb 2000 04:16:42 +0000 (+0000) Subject: * jcf-depend.c (add_entry): Fix test for first list entry. X-Git-Tag: prereleases/libstdc++-2.92~8126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b227604e7a38ad536b1177e1f2d9d05b7e349fa;p=thirdparty%2Fgcc.git * jcf-depend.c (add_entry): Fix test for first list entry. From-SVN: r32072 --- 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.