Merge pull request #17347 from zeertzjq/screen-pvs

refactor(PVS/V547): p == NULL is always false
This commit is contained in:
zeertzjq
2022-02-09 15:52:00 +08:00
committed by GitHub

View File

@@ -3753,9 +3753,6 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
}
c = wp->w_p_lcs_chars.tab1;
p = xmalloc(len + 1);
if (p == NULL) {
n_extra = 0;
} else {
memset(p, ' ', len);
p[len] = NUL;
xfree(p_extra_free);
@@ -3782,7 +3779,6 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
n_extra -= vcol_off;
}
}
}
{
int vc_saved = vcol_off;