fix warning: null pointer dereference

Found by clang scan-build 5.0
This commit is contained in:
Justin M. Keyes 2018-10-21 22:07:47 +02:00
parent e0f6f46c1b
commit a8422818a7

View File

@ -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];