mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
clang/'Logic error': set ret_tv if non-null
This commit is contained in:
@@ -770,8 +770,10 @@ static void typval_exec_lua(const char *lcmd, size_t lcmd_len, const char *name,
|
|||||||
typval_T *ret_tv)
|
typval_T *ret_tv)
|
||||||
{
|
{
|
||||||
if (check_restricted() || check_secure()) {
|
if (check_restricted() || check_secure()) {
|
||||||
|
if (ret_tv) {
|
||||||
ret_tv->v_type = VAR_NUMBER;
|
ret_tv->v_type = VAR_NUMBER;
|
||||||
ret_tv->vval.v_number = 0;
|
ret_tv->vval.v_number = 0;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user