change got_packidx_match_id_str_prefix not to reset the stailq
commit6df9defae8435fe7d577ea00350be7db66ee5d2b
authorOmar Polo <op@omarpolo.com>
Tue, 19 Dec 2023 13:28:17 +0000 (19 13:28 +0000)
committerOmar Polo <op@omarpolo.com>
Tue, 19 Dec 2023 13:28:17 +0000 (19 13:28 +0000)
tree810c787ea048f9f72cce877409d7f1b02b1ce582
parent85467924748b0e27f0105bde280878a149df9fc8
change got_packidx_match_id_str_prefix not to reset the stailq

Since it appends to the given stailq, the ownership is moved and
so don't initialize/reset it at the start and neither on error.
The caller has to take care of the contents.  (kind of) follow up
to 2234939fb4.

Based upon an original diff from jamsek; ok jamsek
lib/pack.c