1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Simply return in pgVersionToStr().

This commit is contained in:
David Steele 2023-01-14 15:25:25 +07:00
parent 34e4835ff3
commit 596c62c54e

View File

@ -549,10 +549,10 @@ pgVersionToStr(unsigned int version)
FUNCTION_LOG_PARAM(UINT, version); FUNCTION_LOG_PARAM(UINT, version);
FUNCTION_LOG_END(); FUNCTION_LOG_END();
String *result = version >= PG_VERSION_10 ? FUNCTION_LOG_RETURN(
strNewFmt("%u", version / 10000) : strNewFmt("%u.%u", version / 10000, version % 10000 / 100); STRING,
version >= PG_VERSION_10 ?
FUNCTION_LOG_RETURN(STRING, result); strNewFmt("%u", version / 10000) : strNewFmt("%u.%u", version / 10000, version % 10000 / 100));
} }
/**********************************************************************************************************************************/ /**********************************************************************************************************************************/