Fix test_config2

The static structures referred to non-static data.
This commit is contained in:
Markus Mäkelä 2019-04-24 18:00:49 +03:00
parent 6aedcc085f
commit 820ff756a7
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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[] =
{