Commit d669b9c9017eacafe0d56b066f28378466d4456b

Stefan Sperling 2020-02-22T12:37:12

fix uninitialized variablen recv_gitconfig_remotes; found by sthen@ with gcc8

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/privsep.c b/lib/privsep.c
index 8964ec0..3c5dd60 100644
--- a/lib/privsep.c
+++ b/lib/privsep.c
@@ -1481,6 +1481,7 @@ got_privsep_recv_gitconfig_remotes(struct got_remote_repo **remotes,
 
 	*remotes = NULL;
 	*nremotes = 0;
+	iremotes.nremotes = 0;
 
 	err = got_privsep_recv_imsg(&imsg, ibuf, sizeof(iremotes));
 	if (err)