Fix test_config2
The static structures referred to non-static data.
This commit is contained in:
parent
6aedcc085f
commit
820ff756a7
@ -238,8 +238,8 @@ int test_enum(config::Enum<Enum>& value)
|
||||
|
||||
int test_path(config::Path& value)
|
||||
{
|
||||
char path[PATH_MAX];
|
||||
char* strpath = getcwd(path, sizeof(path));
|
||||
static char path[PATH_MAX];
|
||||
static char* strpath = getcwd(path, sizeof(path));
|
||||
|
||||
static const TestEntry<config::Path::value_type> entries[] =
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user