diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-01-27 04:58:23 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-01-27 04:58:23 +0100 |
commit | 66d585c6b344562c67812840aca5ea76881f7446 (patch) | |
tree | 8b0950ccaca86a9cc5e1891ce757448a0b542fa7 /tests | |
parent | 1087d4fd01888ab4dbd4f30109b97622b037d95d (diff) | |
download | libgit2-66d585c6b344562c67812840aca5ea76881f7446.tar.gz |
MSVC doesn't like modern code
Diffstat (limited to 'tests')
-rw-r--r-- | tests/network/remote/local.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/network/remote/local.c b/tests/network/remote/local.c index c713ade5b..9b9f716b9 100644 --- a/tests/network/remote/local.c +++ b/tests/network/remote/local.c @@ -202,6 +202,7 @@ void test_network_remote_local__push_to_bare_remote_with_file_url(void) /* Should be able to push to a bare remote */ git_remote *localremote; git_push *push; + const char *url; /* Get some commits */ connect_to_local_repository(cl_fixture("testrepo.git")); @@ -218,7 +219,7 @@ void test_network_remote_local__push_to_bare_remote_with_file_url(void) } /* Create a file URL */ - const char *url = cl_git_path_url("./localbare.git"); + url = cl_git_path_url("./localbare.git"); /* Connect to the bare repo */ cl_git_pass(git_remote_create_inmemory(&localremote, repo, NULL, url)); |