summaryrefslogtreecommitdiff
path: root/tests/t15-config.c
diff options
context:
space:
mode:
authorPaul Betts <paul@paulbetts.org>2011-09-21 11:17:30 -0700
committerPaul Betts <paul@paulbetts.org>2011-09-21 12:00:34 -0700
commite1b86444676b70154bf8ab450d429bdef57a8276 (patch)
tree020b42f514cd78ddd44b4d38e0f57cd88f17616f /tests/t15-config.c
parente3ecf7e9ab043e44ffd94729f27e3a0c434c355a (diff)
downloadlibgit2-e1b86444676b70154bf8ab450d429bdef57a8276.tar.gz
Rewrite getenv to use Win32 version on Windows
Diffstat (limited to 'tests/t15-config.c')
-rw-r--r--tests/t15-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/t15-config.c b/tests/t15-config.c
index d912abb8..ac460bc0 100644
--- a/tests/t15-config.c
+++ b/tests/t15-config.c
@@ -217,7 +217,7 @@ BEGIN_TEST(config10, "a repo's config overrides the global config")
int version;
char *old_home;
- old_home = git__strdup(getenv("HOME"));
+ old_home = p_getenv("HOME");
p_setenv("HOME", CONFIG_BASE, 1);
must_pass(git_repository_open(&repo, REPOSITORY_FOLDER));
@@ -237,7 +237,7 @@ BEGIN_TEST(config11, "fall back to the global config")
int num;
char *old_home;
- old_home = git__strdup(getenv("HOME"));
+ old_home = p_getenv("HOME");
p_setenv("HOME", CONFIG_BASE, 1);
must_pass(git_repository_open(&repo, REPOSITORY_FOLDER));