• Tom Lane's avatar
    Clean up password prompting logic in streamutil.c. · 3172eea0
    Tom Lane authored
    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.
    3172eea0
streamutil.c 4.66 KB