Don't use explicit struct initialization
Older GCC versions don't seem to support explicit struct member initialization.
This commit is contained in:
@ -115,7 +115,8 @@ bool test_load_config(const char *input, SERVER *server)
|
|||||||
|
|
||||||
if (duplicate_context_init(&dcontext))
|
if (duplicate_context_init(&dcontext))
|
||||||
{
|
{
|
||||||
CONFIG_CONTEXT ccontext = {.object = (char*)""};
|
CONFIG_CONTEXT ccontext = {};
|
||||||
|
ccontext.object = (char*)"";
|
||||||
|
|
||||||
if (config_load_single_file(input, &dcontext, &ccontext))
|
if (config_load_single_file(input, &dcontext, &ccontext))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user