Commit Diff


commit - 3b9e6fcfb6688f928cfe62fee08d34d6c8d85992
commit + 0c9eeee21134b27edd7528f489391f9ded46ffb1
blob - fd7075fb6429bbf5503805287967e8c9fd51c710
blob + a97375aa5712bae416359100f0059fa17f6cfc46
--- lib/repository.c
+++ lib/repository.c
@@ -1912,7 +1912,7 @@ const struct got_error *
 got_repo_get_packfile_info(int *npackfiles, int *nobjects,
     off_t *total_packsize, struct got_repository *repo)
 {
-	const struct got_error *err;
+	const struct got_error *err = NULL;
 	DIR *packdir = NULL;
 	struct dirent *dent;
 	struct got_packidx *packidx = NULL;