PVS/V547: indent.c: xmalloc() never returns NULL

This commit is contained in:
Justin M. Keyes 2019-01-05 00:33:26 +01:00
parent 38b4ca26b5
commit 3e558468cf

View File

@ -544,10 +544,8 @@ int get_expr_indent(void)
// Need to make a copy, the 'indentexpr' option could be changed while
// evaluating it.
char_u *inde_copy = vim_strsave(curbuf->b_p_inde);
if (inde_copy != NULL) {
indent = (int)eval_to_number(inde_copy);
xfree(inde_copy);
}
indent = (int)eval_to_number(inde_copy);
xfree(inde_copy);
if (use_sandbox) {
sandbox--;