1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Add initializer braces required by older versions of gcc.

This commit is contained in:
David Steele 2021-09-08 13:32:13 -04:00
parent 38eeac48d6
commit 245b0c048a

View File

@ -51,7 +51,7 @@ yamlNew(const Buffer *const buffer)
{
// Create object
this = OBJ_NEW_ALLOC();
*this = (Yaml){0};
*this = (Yaml){{0}}; // Extra braces are required for older gcc versions
// Initialize parser context
CHECK(yaml_parser_initialize(&this->parser));