Commit c8fab201ebbb9d3c871a7ca426e780b90271a8e0

Patrick Steinhardt 2015-11-24T14:29:32

tests: config::global: fix memleak in open_programdata

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/config/global.c b/tests/config/global.c
index 0ddd204..a149dc0 100644
--- a/tests/config/global.c
+++ b/tests/config/global.c
@@ -73,7 +73,7 @@ void test_config_global__open_programdata(void)
 	git_buf config_path = GIT_BUF_INIT;
 	git_buf var_contents = GIT_BUF_INIT;
 
-	if (!cl_getenv("GITTEST_INVASIVE_FS_STRUCTURE"))
+	if (cl_is_env_set("GITTEST_INVASIVE_FS_STRUCTURE"))
 		cl_skip();
 
 	cl_git_pass(git_libgit2_opts(GIT_OPT_GET_SEARCH_PATH,