1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-02-21 19:48:29 +02:00

Fix improper formatting in config/parse module.

The prior formatting worked but was confusing to read.
This commit is contained in:
David Steele 2022-12-29 15:05:45 +07:00
parent 36ee30d118
commit aa1e72dfe6

View File

@ -1234,12 +1234,14 @@ cfgFileLoadPart(String **config, const Buffer *configPart)
// Create the result config file
if (*config == NULL)
{
*config = strNew();
}
// Else add an LF in case the previous file did not end with one
else
strCat(*config, LF_STR);
// Add the config part to the result config file
strCat(*config, LF_STR);
strCat(*config, configPartStr);
}
}
@ -1340,8 +1342,8 @@ cfgFileLoad( // NOTE: Pas
if (loadConfigInclude)
{
if (result != NULL)
{
// Validate the file by parsing it as an Ini object. If the file is not properly formed, an error will occur.
{
// Validate the file by parsing it as an Ini object. If the file is not properly formed, an error will occur.
Ini *ini = iniNew();
iniParse(ini, result);
}