Commit f9315db03ecd251537cbd120c3e7bc8834bbd67a

Tracey Emery 2020-02-14T22:07:17

initialize author and committer to prevent double free on error

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 9e8a849..20a9cf0 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -2942,6 +2942,8 @@ gw_init_header()
 
 	header->refs_str = NULL;
 	header->commit_id = NULL;
+	header->committer = NULL;
+	header->author = NULL;
 	header->parent_id = NULL;
 	header->tree_id = NULL;
 	header->commit_msg = NULL;