commit 441e144cdc3b06bd194fd1e33f45a639cc9848f9 from: Stefan Sperling date: Fri Jun 22 07:34:44 2018 UTC init output param in got_object_idset_remove() commit - 433eb4d47af050ec306ef0bf47924c1d44cb5ed0 commit + 441e144cdc3b06bd194fd1e33f45a639cc9848f9 blob - 3b924d503aede627cb96558faf3c86dda69ee5bf blob + 234ba60855b9a639f224b01c1bc9999a99169602 --- lib/object_idset.c +++ lib/object_idset.c @@ -167,6 +167,9 @@ got_object_idset_remove(void **data, struct got_object struct got_object_idset_element *entry, *tmp; uint8_t i = id->sha1[0]; + if (data) + *data = NULL; + if (set->nelem == 0) return got_error(GOT_ERR_NO_OBJ);