diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/indent.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c index 0b7ebd498a..7c3f354c13 100644 --- a/src/nvim/indent.c +++ b/src/nvim/indent.c @@ -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--; |