mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
Fix for pvs V782, pointer access to first element of array
This commit is contained in:
@@ -1696,7 +1696,7 @@ static void printdigraph(digr_T *dp)
|
||||
}
|
||||
}
|
||||
|
||||
p = buf;
|
||||
p = &buf[0];
|
||||
*p++ = dp->char1;
|
||||
*p++ = dp->char2;
|
||||
*p++ = ' ';
|
||||
|
@@ -1644,7 +1644,7 @@ static void flush_buf(UI *ui, bool toggle_cursor)
|
||||
{
|
||||
uv_write_t req;
|
||||
uv_buf_t bufs[3];
|
||||
uv_buf_t *bufp = bufs;
|
||||
uv_buf_t *bufp = &bufs[0];
|
||||
TUIData *data = ui->data;
|
||||
|
||||
if (data->bufpos <= 0 && data->busy == data->is_invisible) {
|
||||
|
Reference in New Issue
Block a user