]> git.proxmox.com Git - libgit2.git/commitdiff
Fix MSSVC compilation issue
authornulltoken <emeric.fermas@gmail.com>
Mon, 24 Dec 2012 14:51:10 +0000 (15:51 +0100)
committernulltoken <emeric.fermas@gmail.com>
Mon, 24 Dec 2012 15:54:26 +0000 (16:54 +0100)
tests-clar/clone/nonetwork.c

index 982e089f4cab5d192a320f5cc9d5b04d89fd15d4..9196803172846cfa890b007110945a08fb7bc9fe 100644 (file)
@@ -44,9 +44,10 @@ void test_clone_nonetwork__local(void)
 
 void test_clone_nonetwork__local_absolute_path(void)
 {
+       const char *local_src;
        cl_set_cleanup(&cleanup_repository, "./foo");
 
-       const char *local_src = cl_fixture("testrepo.git");
+       local_src = cl_fixture("testrepo.git");
        cl_git_pass(git_clone(&g_repo, local_src, "./foo", &g_options));
 }