]> granicus.if.org Git - postgresql/commit
Add "break"s to make it clearer what will happen in a nested switch.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Mar 2017 20:01:33 +0000 (16:01 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Mar 2017 20:01:33 +0000 (16:01 -0400)
commit766f7fd613adbceaf1b40803793e10dc487f8596
tree667802f0b0d171fb9d4bcd81166e46ede6e5fea4
parent835cc1136745e8cf02d3d0231b5b7c7a543df5df
Add "break"s to make it clearer what will happen in a nested switch.

This could only matter if the guessed_type variable had a value that wasn't
a member of the PasswordType enum; but just in case, let's be sure that
control falls out to reach the elog(ERROR) at the end of the function.
Per gripe from Coverity.
src/backend/libpq/crypt.c