diff options
author | ZyX <kp-pav@yandex.ru> | 2018-04-17 01:49:46 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2018-04-17 01:49:46 +0300 |
commit | 8cdaac0d80f7876f750ce8eb147c41b477409974 (patch) | |
tree | 7bf10a6e65e3fc1a22dd9a57999163cc2fefcaf5 | |
parent | cb3bb0becb74f46dfa88ff4be25833f55576c04e (diff) | |
download | rneovim-8cdaac0d80f7876f750ce8eb147c41b477409974.tar.gz rneovim-8cdaac0d80f7876f750ce8eb147c41b477409974.tar.bz2 rneovim-8cdaac0d80f7876f750ce8eb147c41b477409974.zip |
event/process: Silence PVS/V547: assuming stream->num_bytes changes
Not familiar with the code, but I assume that loop_poll_events can actually
change stream->num_bytes, so condition is not always false.
-rw-r--r-- | src/nvim/event/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/event/process.c b/src/nvim/event/process.c index 60650344ce..fa31024a64 100644 --- a/src/nvim/event/process.c +++ b/src/nvim/event/process.c @@ -358,7 +358,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. |