diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-15 17:27:41 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-15 17:27:41 -0500 |
commit | 3172eea062e779db39df9a48fca0ad7448163f98 (patch) | |
tree | f692329ff3681614de4be590a038184717bd99e2 /src/backend/utils/adt/json.c | |
parent | f3b3b8d5be00ebcfade3644fca7a80e25fd88a70 (diff) | |
download | postgresql-3172eea062e779db39df9a48fca0ad7448163f98.tar.gz postgresql-3172eea062e779db39df9a48fca0ad7448163f98.zip |
Clean up password prompting logic in streamutil.c.
The previous coding was fairly unreadable and drew double-free warnings
from clang. I believe the double free was actually not reachable, because
PQconnectionNeedsPassword is coded to not return true if a password was
provided, so that the loop can't iterate more than twice. Nonetheless
it seems worth rewriting. No back-patch since this is just cosmetic.
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions