pgbackrest.git / summary / log / commit / refs

commit    4e5ac11517022f445f4ec078cc30bd2ce3aa6d15
Author:   David Steele <david@pgmasters.net>
Date:     Thu Mar 24 18:56:26 2022 +0000

    Fix incorrect struct type in list initialization.
    
    This looks like a copy-paste error.
    
    The code is only run during development so this is not a live issue.
    
    Found with -fsanitize=address.


src/build/config/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/config/parse.c b/src/build/config/parse.c index cbca29ec2..9957ffff0 100644 --- a/src/build/config/parse.c +++ b/src/build/config/parse.c @@ -506,7 +506,7 @@ bldCfgParseDependReconcile(const BldCfgOptionDependRaw *const optDependRaw, cons static List * bldCfgParseOptionDeprecate(Yaml *const yaml) { - List *result = lstNewP(sizeof(BldCfgOptionCommandRaw), .comparator = lstComparatorStr); + List *result = lstNewP(sizeof(BldCfgOptionDeprecateRaw), .comparator = lstComparatorStr); MEM_CONTEXT_TEMP_BEGIN() { [parent: 75b26319aea4]