terminal: Silence -V666 error: value not correspond with string length

Looks like calling this function below with 4-character first strings
made PVS think that OPT_LOCAL (it is equal to 4) is a string length.
This commit is contained in:
ZyX 2017-07-04 17:42:10 +03:00
parent af1f17f1dc
commit 28f6bd822b

View File

@ -229,7 +229,7 @@ Terminal *terminal_open(TerminalOptions opts)
rv->invalid_start = 0;
rv->invalid_end = opts.height;
refresh_screen(rv, curbuf);
set_option_value("buftype", 0, "terminal", OPT_LOCAL);
set_option_value("buftype", 0, "terminal", OPT_LOCAL); // -V666
// Default settings for terminal buffers
curbuf->b_p_ma = false; // 'nomodifiable'