aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/regexp.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-09-08 18:20:36 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-09-08 18:20:36 -0400
commitf47f3148011f1cb5dc34396382fc2f434844d247 (patch)
tree73242df67b3b34f18ddba6447adb7476aa922955 /src/backend/utils/adt/regexp.c
parent9226a3b89b004b3472d963442856206f0c249a53 (diff)
downloadpostgresql-f47f3148011f1cb5dc34396382fc2f434844d247.tar.gz
postgresql-f47f3148011f1cb5dc34396382fc2f434844d247.zip
Minor cleanup/future-proofing for pg_saslprep().
Ensure that pg_saslprep() initializes its output argument to NULL in all failure paths, and then remove the redundant initialization that some (not all) of its callers did. This does not fix any live bug, but it reduces the odds of future bugs of omission. Also add a comment about why the existing failure-path coding is adequate. Back-patch so as to keep the function's API consistent across branches, again to forestall future bug introduction. Patch by me, reviewed by Michael Paquier Discussion: https://postgr.es/m/16558.1536407783@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/regexp.c')
0 files changed, 0 insertions, 0 deletions