diff options
| author | Ben Straub <bs@github.com> | 2012-11-29 14:06:40 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-11-30 13:12:14 -0800 |
| commit | b81aa2f1deb98eb7f9e60ac96696e69a9a49d8f8 (patch) | |
| tree | c9319fc7252b87c183dc6d7ed9296c0e48f50f5a /tests-clar/checkout/tree.c | |
| parent | f4fc9fdba03dd4975229243d7c1debd00c9d1f18 (diff) | |
| download | libgit2-b81aa2f1deb98eb7f9e60ac96696e69a9a49d8f8.tar.gz | |
Deploy GIT_CHECKOUT_OPTS_INIT
Diffstat (limited to 'tests-clar/checkout/tree.c')
| -rw-r--r-- | tests-clar/checkout/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests-clar/checkout/tree.c b/tests-clar/checkout/tree.c index 534c46086..fe5bd4ff8 100644 --- a/tests-clar/checkout/tree.c +++ b/tests-clar/checkout/tree.c @@ -2,6 +2,7 @@ #include "git2/checkout.h" #include "repository.h" +#include "checkout_util.h" static git_repository *g_repo; static git_checkout_opts g_opts; @@ -11,7 +12,7 @@ void test_checkout_tree__initialize(void) { g_repo = cl_git_sandbox_init("testrepo"); - memset(&g_opts, 0, sizeof(g_opts)); + reset_checkout_opts(&g_opts); g_opts.checkout_strategy = GIT_CHECKOUT_SAFE; } |
