loop over the method list correctly

This commit is contained in:
Bill Currie 2002-08-13 21:17:20 +00:00
parent 3971786ee1
commit fa6f3cb09d
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ copy_methods (methodlist_t *dst, methodlist_t *src)
{
method_t *s, *d;
for (s = src->head; s; s++) {
for (s = src->head; s; s = s->next) {
d = malloc (sizeof (method_t));
*d = *s;
d->next = 0;