Commit Diff


commit - 53d03f970a594ed205147f847c825c9b4752c3fd
commit + d639f28bed6c07bf171d552905c55829117715da
blob - 1be0d09b5fe92108c81739e8bfa13d5c2068bb2b
blob + c5187ac077f1a2bce176f2378882a6f94b7cdf3b
--- libexec/got-fetch-pack/got-fetch-pack.c
+++ libexec/got-fetch-pack/got-fetch-pack.c
@@ -777,7 +777,7 @@ int
 main(int argc, char **argv)
 {
 	const struct got_error *err = NULL;
-	int fetchfd, packfd = -1;
+	int fetchfd = -1, packfd = -1;
 	uint8_t pack_sha1[SHA1_DIGEST_LENGTH];
 	struct imsgbuf ibuf;
 	struct imsg imsg;
blob - dfc7acc527035a5e798618a09fb1e1b57020650e
blob + 25ceb461a55b156e97ba7cb19ae2652323c8821f
--- libexec/got-send-pack/got-send-pack.c
+++ libexec/got-send-pack/got-send-pack.c
@@ -607,7 +607,7 @@ int
 main(int argc, char **argv)
 {
 	const struct got_error *err = NULL;
-	int sendfd;
+	int sendfd = -1;
 	struct imsgbuf ibuf;
 	struct imsg imsg;
 	struct got_pathlist_head refs;