mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 18:28:19 +00:00
Compiler warns about uninitialized object in vim_eval().
In case of an evaluation error the returned Object is not initialized, so initialize it with OBJECT_INIT.
This commit is contained in:
@@ -145,7 +145,7 @@ String vim_command_output(String str, Error *err)
|
||||
Object vim_eval(String str, Error *err)
|
||||
FUNC_ATTR_DEFERRED
|
||||
{
|
||||
Object rv;
|
||||
Object rv = OBJECT_INIT;
|
||||
// Evaluate the expression
|
||||
try_start();
|
||||
typval_T *expr_result = eval_expr((char_u *) str.data, NULL);
|
||||
|
Reference in New Issue
Block a user