diff options
Diffstat (limited to 'src/describe.c')
-rw-r--r-- | src/describe.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/describe.c b/src/describe.c index fb39c58fe..a193fcbcb 100644 --- a/src/describe.c +++ b/src/describe.c @@ -571,8 +571,6 @@ static int describe( } } - best = (struct possible_tag *)git_vector_get(&all_matches, 0); - git_vector_sort(&all_matches); best = (struct possible_tag *)git_vector_get(&all_matches, 0); @@ -727,7 +725,7 @@ int git_describe_workdir( git_oid current_id; git_status_list *status = NULL; git_status_options status_opts = GIT_STATUS_OPTIONS_INIT; - git_describe_result *result; + git_describe_result *result = NULL; git_object *commit; if ((error = git_reference_name_to_id(¤t_id, repo, GIT_HEAD_FILE)) < 0) |