mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
PVS/V547: indent.c: xmalloc() never returns NULL
This commit is contained in:
parent
38b4ca26b5
commit
3e558468cf
@ -544,10 +544,8 @@ int get_expr_indent(void)
|
|||||||
// Need to make a copy, the 'indentexpr' option could be changed while
|
// Need to make a copy, the 'indentexpr' option could be changed while
|
||||||
// evaluating it.
|
// evaluating it.
|
||||||
char_u *inde_copy = vim_strsave(curbuf->b_p_inde);
|
char_u *inde_copy = vim_strsave(curbuf->b_p_inde);
|
||||||
if (inde_copy != NULL) {
|
indent = (int)eval_to_number(inde_copy);
|
||||||
indent = (int)eval_to_number(inde_copy);
|
xfree(inde_copy);
|
||||||
xfree(inde_copy);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (use_sandbox) {
|
if (use_sandbox) {
|
||||||
sandbox--;
|
sandbox--;
|
||||||
|
Loading…
Reference in New Issue
Block a user