mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
Merge pull request #1312 from GokuITA/coverity1289
coverity/71507: Unchecked return value (CHECKED_RETURN)
This commit is contained in:
@@ -19606,11 +19606,11 @@ static void script_host_eval(char *method, typval_T *argvars, typval_T *rettv)
|
||||
}
|
||||
|
||||
Error err = ERROR_INIT;
|
||||
object_to_vim(result, rettv, &err);
|
||||
api_free_object(result);
|
||||
|
||||
if (err.set) {
|
||||
if (!object_to_vim(result, rettv, &err)){
|
||||
EMSG("Error converting value back to vim");
|
||||
}
|
||||
|
||||
api_free_object(result);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user