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

Fix instances where STRDEF() was used instead of STR().

In practice this didn't cause problems because the string buffer was still valid and strSize() was not being called.
This commit is contained in:
David Steele 2022-04-21 18:23:17 -04:00
parent 627921c72a
commit a2eee156b5
2 changed files with 3 additions and 3 deletions

View File

@ -557,7 +557,7 @@ strCmpZ(const String *this, const char *compare)
FUNCTION_TEST_PARAM(STRINGZ, compare);
FUNCTION_TEST_END();
FUNCTION_TEST_RETURN(strCmp(this, compare == NULL ? NULL : STRDEF(compare)));
FUNCTION_TEST_RETURN(strCmp(this, compare == NULL ? NULL : STR(compare)));
}
/**********************************************************************************************************************************/

View File

@ -276,9 +276,9 @@ hrnLogReplaceAdd(const char *expression, const char *expressionSub, const char *
HarnessLogReplace logReplace =
{
.expression = strNewZ(expression),
.regExp = regExpNew(STRDEF(expression)),
.regExp = regExpNew(STR(expression)),
.expressionSub = expressionSub == NULL ? NULL : strNewZ(expressionSub),
.regExpSub = expressionSub == NULL ? NULL : regExpNew(STRDEF(expressionSub)),
.regExpSub = expressionSub == NULL ? NULL : regExpNew(STR(expressionSub)),
.replacement = strNewZ(replacement),
.matchList = strLstNew(),
.version = version,