Commit d1b988e317a93820f57ce18e68035a6799e20583

Stefan Sperling 2022-01-26T10:33:52

add missing initialization of delta list in got_privsep_get_imsg_obj()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/privsep.c b/lib/privsep.c
index 6cf7e9a..252ff6e 100644
--- a/lib/privsep.c
+++ b/lib/privsep.c
@@ -1208,7 +1208,7 @@ got_privsep_get_imsg_obj(struct got_object **obj, struct imsg *imsg,
 		(*obj)->pack_offset = iobj->pack_offset;
 		(*obj)->pack_idx = iobj->pack_idx;
 	}
-
+	STAILQ_INIT(&(*obj)->deltas.entries);
 	return err;
 }