Commit Diff


commit - c75f7264fe1eb2b57be459109a258b05ac3e5a98
commit + 90636195fccefd1d6e9e763a06c1fa4ab9d5a9e0
blob - ee42ef15b6041ff85391515838d089565cc8ebdb
blob + 4f6a28e68bb97ad19039204daf69b2c4f2ae8b04
--- lib/repository.c
+++ lib/repository.c
@@ -761,6 +761,8 @@ got_repo_cache_pack(struct got_pack **packp, struct go
 	err = got_pack_get_packfile_size(&pack->filesize, path_packfile);
 	if (err)
 		goto done;
+
+	pack->privsep_child = NULL;
 
 #ifndef GOT_PACK_NO_MMAP
 	pack->map = mmap(NULL, pack->filesize, PROT_READ, MAP_PRIVATE,