mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
fix warning: null arg passed to 'nonnull' param
Found by clang scan-build 5.0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user