Commit b52a8930 by Tom Tromey Committed by Tom Tromey

natReference.cc (add_to_hash): Set n->next before setting *link.

	* java/lang/ref/natReference.cc (add_to_hash): Set n->next before
	setting *link.

From-SVN: r45996
parent 508fc646
2001-10-03 Tom Tromey <tromey@redhat.com>
* java/lang/ref/natReference.cc (add_to_hash): Set n->next before
setting *link.
2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
......
......@@ -197,8 +197,8 @@ add_to_hash (java::lang::ref::Reference *the_reference)
link = &iter->next;
iter = *link;
}
*link = n;
n->next = (*link) ? (*link)->next : NULL;
*link = n;
}
// This is called when an object is ready to be finalized. This
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment