diff --git a/server/core/test/test_config2.cc b/server/core/test/test_config2.cc index 34a70815d..18a7d9bcf 100644 --- a/server/core/test/test_config2.cc +++ b/server/core/test/test_config2.cc @@ -239,11 +239,11 @@ int test_enum(config::Enum& value) int test_path(config::Path& value) { char path[PATH_MAX]; - getcwd(path, sizeof(path)); + char* strpath = getcwd(path, sizeof(path)); static const TestEntry entries[] = { - {path, true, path}, + {strpath, true, strpath}, {"/tmp", true, "/tmp"}, {"non-existent", false}