Commit Diff


commit - f34b169e54fc4d4960f06b804cabe1aeec70e07d
commit + 74a2356f3bd54be374a23546704e7ec7c876a247
blob - e5ebc4d0a23cdad02ce0996c736d469f703ae9f8
blob + 70a21a16afc5917f022654870fcc9209079fe86d
--- include/got_object.h
+++ include/got_object.h
@@ -25,6 +25,7 @@ struct got_commit_object;
 struct got_object_qid {
 	SIMPLEQ_ENTRY(got_object_qid) entry;
 	struct got_object_id *id;
+	void *data; /* managed by API user */
 };
 
 SIMPLEQ_HEAD(got_object_id_queue, got_object_qid);
blob - 16b8d2d529e9ab5b19b529a8d06b9f77dc22c9b1
blob + 0b0c5c0789a60b52fbd0e7f18073f05dbf59c989
--- lib/object_parse.c
+++ lib/object_parse.c
@@ -89,6 +89,7 @@ got_object_qid_alloc_partial(struct got_object_qid **q
 		*qid = NULL;
 		return err;
 	}
+	(*qid)->data = NULL;
 
 	return NULL;
 }