summaryrefslogtreecommitdiff
path: root/gcc/java/jcf-depend.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-05 18:50:22 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-05 18:50:22 +0000
commite05dab7d8959fe021af1be94c52b9fb90a874bb3 (patch)
tree3458885671e290c61945461b2a6688a2bd3afce8 /gcc/java/jcf-depend.c
parent041d2731669b97c5b7c96bfcd6476d9b8dcfb8b4 (diff)
downloadgcc-e05dab7d8959fe021af1be94c52b9fb90a874bb3.tar.gz
2000-04-03 Matt Welsh <mdw@cs.berkeley.edu>
* 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
Diffstat (limited to 'gcc/java/jcf-depend.c')
-rw-r--r--gcc/java/jcf-depend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/jcf-depend.c b/gcc/java/jcf-depend.c
index 3fb8c00bb15..79d060a4b04 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 == *entp)
+ if (last == NULL)
{
// This is only true the first time through, when the entry list
// is empty.