socket.c: Ignore PVS/V547: False positive

https://github.com/neovim/neovim/pull/8218#issuecomment-383412049
This commit is contained in:
Justin M. Keyes
2018-05-20 08:46:06 +02:00
parent e24d338194
commit 5284b85d07

View File

@@ -252,7 +252,7 @@ tcp_retry:
} }
status = 1; status = 1;
LOOP_PROCESS_EVENTS_UNTIL(&main_loop, NULL, timeout, status != 1); LOOP_PROCESS_EVENTS_UNTIL(&main_loop, NULL, timeout, status != 1);
if (status == 0) { if (status == 0) { // -V547
stream_init(NULL, stream, -1, uv_stream); stream_init(NULL, stream, -1, uv_stream);
success = true; success = true;
} else if (is_tcp && addrinfo->ai_next) { } else if (is_tcp && addrinfo->ai_next) {