diff --git a/qpkg/gobble.c b/qpkg/gobble.c index a64f750..eb8bedd 100644 --- a/qpkg/gobble.c +++ b/qpkg/gobble.c @@ -413,8 +413,9 @@ list_with_version: ref->version = ID(versions)->key; EXPECT(")"); } - ref->next = *anchor; *anchor = ref; + ref->next = NULL; + anchor = &ref->next; if (buf == end) DONE; if (*buf != ',')