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