commit 2fb669fbbb380829c73db7047672204daa96de3c from: Stefan Sperling date: Fri Mar 20 20:23:18 2020 UTC initialize optional output parameters in parse_gitconfig_file() commit - 5146eb392b43b61472c67037a21b28f18ce99955 commit + 2fb669fbbb380829c73db7047672204daa96de3c blob - 1c7c3d1f214491493e2c64d9a0a7abee0317d35e blob + bd2ded95219c3ea3b371bba588ae88440da1aeaf --- lib/repository.c +++ lib/repository.c @@ -375,6 +375,12 @@ parse_gitconfig_file(int *gitconfig_repository_format_ *gitconfig_repository_format_version = 0; *gitconfig_author_name = NULL; *gitconfig_author_email = NULL; + if (remotes) + *remotes = NULL; + if (nremotes) + *nremotes = 0; + if (gitconfig_owner) + *gitconfig_owner = NULL; fd = open(gitconfig_path, O_RDONLY); if (fd == -1) {