diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-08-01 13:03:43 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-08-01 13:11:34 -0400 |
commit | e37c23faf8f010ad9c35a29179ddefb6d34f746b (patch) | |
tree | 81f34bca096e0e0892ee77d7e449721f847932ab | |
parent | 3900c702ca59264604a81611779155b874e486c0 (diff) |
Initialize `cfg`, and `repos` to NULL in `main()`.
-rw-r--r-- | pullreqd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |