summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-08-01 13:03:43 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-08-01 13:11:34 -0400
commite37c23faf8f010ad9c35a29179ddefb6d34f746b (patch)
tree81f34bca096e0e0892ee77d7e449721f847932ab
parent3900c702ca59264604a81611779155b874e486c0 (diff)
Initialize `cfg`, and `repos` to NULL in `main()`.
-rw-r--r--pullreqd.c4
1 files 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;