diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-04-27 09:25:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-27 09:25:02 +0200 |
| commit | 53f11dcfc7139fe6c8a6b114db4bfec5d91005a9 (patch) | |
| tree | e9bfbaf10fc6681bbbcba0a0eabdce8a6f6840b5 /src/nvim/event | |
| parent | 009ccfe170ada2c78ca7feabda567a7e901fb30b (diff) | |
| parent | 4ce8521ee4a72e050bd187c2986708c5f98c7442 (diff) | |
| download | rneovim-53f11dcfc7139fe6c8a6b114db4bfec5d91005a9.tar.gz rneovim-53f11dcfc7139fe6c8a6b114db4bfec5d91005a9.tar.bz2 rneovim-53f11dcfc7139fe6c8a6b114db4bfec5d91005a9.zip | |
Merge #8218 'Fix errors reported by PVS'
closes #4983
Diffstat (limited to 'src/nvim/event')
| -rw-r--r-- | src/nvim/event/loop.h | 2 | ||||
| -rw-r--r-- | src/nvim/event/process.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/event/loop.h b/src/nvim/event/loop.h index c0e2f49e4f..f5dd23ac8b 100644 --- a/src/nvim/event/loop.h +++ b/src/nvim/event/loop.h @@ -52,6 +52,8 @@ typedef struct loop { } \ } while (0) +// -V:LOOP_PROCESS_EVENTS_UNTIL:547 + // Poll for events until a condition or timeout #define LOOP_PROCESS_EVENTS_UNTIL(loop, multiqueue, timeout, condition) \ do { \ diff --git a/src/nvim/event/process.c b/src/nvim/event/process.c index f82614e7a1..7a8a39dbcf 100644 --- a/src/nvim/event/process.c +++ b/src/nvim/event/process.c @@ -356,7 +356,7 @@ static void flush_stream(Process *proc, Stream *stream) } // Stream can be closed if it is empty. - if (num_bytes == stream->num_bytes) { + if (num_bytes == stream->num_bytes) { // -V547 if (stream->read_cb && !stream->did_eof) { // Stream callback could miss EOF handling if a child keeps the stream // open. But only send EOF if we haven't already. |