Replace static buf with a stack-allocated one in ReadControlFile

It's only used very locally within the function.

Reviewed-by: Robert Haas
Discussion: https://www.postgresql.org/message-id/7f86e06a-98c5-4ce3-8ec9-3885c8de0358@iki.fi
This commit is contained in:
Heikki Linnakangas 2024-07-30 22:05:59 +03:00
parent 6151cb7876
commit da8a587e2e

View File

@ -4314,7 +4314,7 @@ ReadControlFile(void)
{ {
pg_crc32c crc; pg_crc32c crc;
int fd; int fd;
static char wal_segsz_str[20]; char wal_segsz_str[20];
int r; int r;
/* /*