Separate read and write pointers in pg_saslprep

Peter Eisentraut <peter@eisentraut.org>

Commit: de746e0d2a5856f162deed042420ca15e6683cdd
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2026-01-05T10:03:49Z
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.pg@gmail.com>
Discussion: https://postgr.es/m/aUQHy/MmWq7c97wK%40ip-10-97-1-34.eu-west-3.compute.internal

Files

PathChange+/−
src/common/saslprep.c modified +8 −7

Discussion