Content-Length: 257155 | pFad | http://github.com/postgrespro/postgres/commit/da8a587e2e225be1ccf838a330e342bda6848874

0F Replace static buf with a stack-allocated one in ReadControlFile · postgrespro/postgres@da8a587 · GitHub
Skip to content

Commit da8a587

Browse files
committed
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
1 parent 6151cb7 commit da8a587

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4314,7 +4314,7 @@ ReadControlFile(void)
43144314
{
43154315
pg_crc32c crc;
43164316
int fd;
4317-
static char wal_segsz_str[20];
4317+
char wal_segsz_str[20];
43184318
int r;
43194319

43204320
/*

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/da8a587e2e225be1ccf838a330e342bda6848874

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy