mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix warning: null arg passed to 'nonnull' param
Found by clang scan-build 5.0
This commit is contained in:
parent
f97496a21c
commit
902ca26856
@ -3299,7 +3299,7 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout,
|
||||
endcolumn = (curwin->w_curswant == MAXCOL);
|
||||
}
|
||||
|
||||
if (sub_joining_lines(eap, pat, sub, cmd, !preview)) {
|
||||
if (sub != NULL && sub_joining_lines(eap, pat, sub, cmd, !preview)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user