mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +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);
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user