summaryrefslogtreecommitdiff
path: root/src/stash.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-29 14:06:40 -0800
committerBen Straub <bs@github.com>2012-11-30 13:12:14 -0800
commitb81aa2f1deb98eb7f9e60ac96696e69a9a49d8f8 (patch)
treec9319fc7252b87c183dc6d7ed9296c0e48f50f5a /src/stash.c
parentf4fc9fdba03dd4975229243d7c1debd00c9d1f18 (diff)
downloadlibgit2-b81aa2f1deb98eb7f9e60ac96696e69a9a49d8f8.tar.gz
Deploy GIT_CHECKOUT_OPTS_INIT
Diffstat (limited to 'src/stash.c')
-rw-r--r--src/stash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stash.c b/src/stash.c
index 107cbe3ca..edd8c55db 100644
--- a/src/stash.c
+++ b/src/stash.c
@@ -498,9 +498,7 @@ static int reset_index_and_workdir(
git_commit *commit,
bool remove_untracked)
{
- git_checkout_opts opts;
-
- memset(&opts, 0, sizeof(git_checkout_opts));
+ git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT;
opts.checkout_strategy =
GIT_CHECKOUT_UPDATE_MODIFIED | GIT_CHECKOUT_UPDATE_UNTRACKED;