diff options
| author | Vicent Martà <vicent@github.com> | 2012-12-05 11:47:19 -0800 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-12-05 11:47:19 -0800 |
| commit | e05ca13f1f3550f59790c0f992841abceee1b4c5 (patch) | |
| tree | a01c119011d0c6020c9288096d09ed055c475bd8 /src/reset.c | |
| parent | a541eafa606b58e7ce3df8e496da8e032fdb74ec (diff) | |
| parent | ee1c33b146a366260a4648b1f29f470fedaca0fa (diff) | |
| download | libgit2-e05ca13f1f3550f59790c0f992841abceee1b4c5.tar.gz | |
Merge pull request #1115 from ben/struct-versions
Version info for public structs
Diffstat (limited to 'src/reset.c')
| -rw-r--r-- | src/reset.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/reset.c b/src/reset.c index d410a8806..17b4b900c 100644 --- a/src/reset.c +++ b/src/reset.c @@ -69,7 +69,7 @@ int git_reset( git_index *index = NULL; git_tree *tree = NULL; int error = -1; - git_checkout_opts opts; + git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT; assert(repo && target); assert(reset_type == GIT_RESET_SOFT @@ -136,7 +136,6 @@ int git_reset( goto cleanup; } - memset(&opts, 0, sizeof(opts)); opts.checkout_strategy = GIT_CHECKOUT_FORCE; if (git_checkout_index(repo, NULL, &opts) < 0) { |
