summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-04-18 17:10:54 -0400
committerGitHub <noreply@github.com>2022-04-18 17:10:54 -0400
commit7678e4e5745c2493a3130e7c30365ff216df60a7 (patch)
treebe2746226d749d8f7d87f1f3d061bb9f660e9203
parent465bbf88ea939a965fbcbade72870c61f815e457 (diff)
parent350cea37ec79d228feeddfdd2e7795ab39684a6a (diff)
downloadlibgit2-7678e4e5745c2493a3130e7c30365ff216df60a7.tar.gz
Merge pull request #6273 from apnadkarni/describe-crash-fix
Bug #6272 - fix crash in git_describe_commit.
-rw-r--r--src/describe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/describe.c b/src/describe.c
index 1033eac50..9427e8635 100644
--- a/src/describe.c
+++ b/src/describe.c
@@ -652,7 +652,7 @@ int git_describe_commit(
{
struct get_name_data data;
struct commit_name *name;
- git_commit *commit;
+ git_commit *commit = NULL;
int error = -1;
git_describe_options normalized;