Skip to content

Commit b4933f6

Browse files
committed
reset errno after pg_logging_init
1 parent e8def1d commit b4933f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/logger.c

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ init_logger(const char *root_path, LoggerConfig *config)
9292
#if PG_VERSION_NUM >= 120000
9393
/* Setup logging for functions from other modules called by pg_probackup */
9494
pg_logging_init(PROGRAM_NAME);
95+
errno = 0; /* sometimes pg_logging_init sets errno */
9596

9697
switch (logger_config.log_level_console)
9798
{

0 commit comments

Comments
 (0)