pgsql: Separate read and write pointers in pg_saslprep

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Separate read and write pointers in pg_saslprep
Date: 2026-01-05 10:05:06
Message-ID: E1vchST-004cKx-0H@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Separate read and write pointers in pg_saslprep

Use separate pointers for reading const input ('p') and writing to
mutable output ('outp'), avoiding the need to cast away const on the
input parameter.

Author: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Discussion: https://postgr.es/m/aUQHy/MmWq7c97wK%40ip-10-97-1-34.eu-west-3.compute.internal

Branch
------
master

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

Modified Files
--------------
src/common/saslprep.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-01-05 10:18:34 pgsql: Fix comment in tableam.c
Previous Message Heikki Linnakangas 2026-01-05 09:53:37 pgsql: Tighten up assertion on a local variable