mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
fix warning: null pointer dereference
Found by clang scan-build 5.0
This commit is contained in:
parent
e0f6f46c1b
commit
a8422818a7
@ -1475,11 +1475,13 @@ void msg_prt_line(char_u *s, int list)
|
||||
|
||||
while (!got_int) {
|
||||
if (n_extra > 0) {
|
||||
--n_extra;
|
||||
if (c_extra)
|
||||
n_extra--;
|
||||
if (c_extra) {
|
||||
c = c_extra;
|
||||
else
|
||||
} else {
|
||||
assert(p_extra != NULL);
|
||||
c = *p_extra++;
|
||||
}
|
||||
} else if ((l = utfc_ptr2len(s)) > 1) {
|
||||
col += utf_ptr2cells(s);
|
||||
char buf[MB_MAXBYTES + 1];
|
||||
|
Loading…
Reference in New Issue
Block a user