Commit Diff
--- 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,