pgsql: Replace static buf with a stack-allocated one in ReadControlFile

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Replace static buf with a stack-allocated one in ReadControlFile
Date: 2024-07-30 19:24:48
Message-ID: E1sYsSm-001vm8-1B@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/da8a587e2e225be1ccf838a330e342bda6848874

Modified Files
--------------
src/backend/access/transam/xlog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2024-07-30 23:51:38 pgsql: Relax check for return value from second call of pg_strnxfrm().
Previous Message Heikki Linnakangas 2024-07-30 12:20:38 pgsql: Remove leftover function declaration