summaryrefslogtreecommitdiff
path: root/tests/t15-config.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-09-22 20:44:30 +0300
committerVicent Marti <tanoku@gmail.com>2011-09-27 14:33:18 +0200
commit01d7fded1b233b6a8fcfeec4eaf00b7dc9cc7316 (patch)
tree7c830440f1da196e41a53f1056ee3d2dd197d352 /tests/t15-config.c
parentea4dad8ec4388a155836b6427afd018f8432af9d (diff)
downloadlibgit2-01d7fded1b233b6a8fcfeec4eaf00b7dc9cc7316.tar.gz
Revert "Rewrite getenv to use Win32 version on Windows"
This reverts commit e1b86444676b70154bf8ab450d429bdef57a8276.
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 b959cc95a..ac2d79cfd 100644
--- a/tests/t15-config.c
+++ b/tests/t15-config.c
@@ -235,7 +235,7 @@ BEGIN_TEST(config10, "a repo's config overrides the global config")
int version;
char *old_home;
- old_home = p_getenv("HOME");
+ old_home = git__strdup(getenv("HOME"));
p_setenv("HOME", CONFIG_BASE, 1);
must_pass(git_repository_open(&repo, REPOSITORY_FOLDER));
@@ -255,7 +255,7 @@ BEGIN_TEST(config11, "fall back to the global config")
int num;
char *old_home;
- old_home = p_getenv("HOME");
+ old_home = git__strdup(getenv("HOME"));
p_setenv("HOME", CONFIG_BASE, 1);
must_pass(git_repository_open(&repo, REPOSITORY_FOLDER));