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:
parent
627921c72a
commit
a2eee156b5
@ -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)));
|
||||
}
|
||||
|
||||
/**********************************************************************************************************************************/
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user