1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Remove ASSERT() in sckClientOpen() to silence Coverity complaint.

Coverity complains that this comparison might have a side effect because the variable is volatile. It's hard to see what that might be but since the assertion is not all that important, just remove it. During testing this sort of error will generally be caught by valgrind.
This commit is contained in:
David Steele 2024-05-10 10:01:16 +09:30
parent d32eb5bb54
commit db4eefae1a

View File

@ -234,7 +234,6 @@ sckClientOpen(THIS_VOID)
CATCH_ANY()
{
// Close socket
ASSERT(openData != NULL);
close(openData->fd);
// Clear socket so the connection can be retried