Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-05-05 17:21:57 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-22 18:02:55 +0300
commitadb58f7d646091f835d900867e22cb8329799dd2 (patch)
treedf933fce3b02cbd30f35fecf876b727fa4905c4c /tests/submodule
parent961861fafad45c9eab29f523e51261ba78ab10be (diff)
submodule: fix potential leak in the tests
Diffstat (limited to 'tests/submodule')
-rw-r--r--tests/submodule/submodule_helpers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/submodule/submodule_helpers.c b/tests/submodule/submodule_helpers.c
index d5e02360a..2647e1514 100644
--- a/tests/submodule/submodule_helpers.c
+++ b/tests/submodule/submodule_helpers.c
@@ -156,10 +156,9 @@ void refute__submodule_exists(
git_repository *repo, const char *name, int expected_error,
const char *msg, const char *file, int line)
{
- git_submodule *sm;
clar__assert_equal(
file, line, msg, 1, "%i",
- expected_error, (int)(git_submodule_lookup(&sm, repo, name)));
+ expected_error, (int)(git_submodule_lookup(NULL, repo, name)));
}
unsigned int get_submodule_status(git_repository *repo, const char *name)