From e37c23faf8f010ad9c35a29179ddefb6d34f746b Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 1 Aug 2021 13:03:43 -0400 Subject: Initialize `cfg`, and `repos` to NULL in `main()`. --- pullreqd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pullreqd.c b/pullreqd.c index 00d72e9..f34dad6 100644 --- a/pullreqd.c +++ b/pullreqd.c @@ -196,8 +196,8 @@ void cleanup(config *cfg, int listen_socket, git_repository **repos) { } int main(int argc, char **argv) { - config *cfg; - git_repository **repos; + config *cfg = NULL; + git_repository **repos = NULL; char *config_file = "test.conf"; int config_read = 0; int listen_socket = -1; -- cgit v1.2.3-13-gbd6f