diff options
author | Pierre-Olivier Latour <pol@mac.com> | 2014-10-26 10:30:05 -0700 |
---|---|---|
committer | Pierre-Olivier Latour <pol@mac.com> | 2014-10-27 09:19:07 -0700 |
commit | 64bcf567c30af6162f756f661c9f2a14f861deb4 (patch) | |
tree | 2e9906f6f6998b76ef8c2ffe8cf48e5f6b60bff8 /src/describe.c | |
parent | ea66215d87a9cb588d01040f3191236babdbd53f (diff) | |
download | libgit2-64bcf567c30af6162f756f661c9f2a14f861deb4.tar.gz |
Fixed potential crash with uninitialized variables
Diffstat (limited to 'src/describe.c')
-rw-r--r-- | src/describe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/describe.c b/src/describe.c index 2640c1cd8..a193fcbcb 100644 --- a/src/describe.c +++ b/src/describe.c @@ -725,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) |