diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2014-05-31 09:10:20 -0400 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-31 09:10:20 -0400 |
| commit | 7eae32b3a62c4e631088e58e542c3185a215f57e (patch) | |
| tree | 701cbf7edbf92eafca5f795aa2c2f8ed3da8deca /src/nvim/api/tabpage.c | |
| parent | 4e1ca460e3fa7a0232ce17a6c90ca9df9e94fdcc (diff) | |
| parent | 005a4254c0ed4a6bcf4ce38c875f6d0c4f4ee113 (diff) | |
| download | rneovim-7eae32b3a62c4e631088e58e542c3185a215f57e.tar.gz rneovim-7eae32b3a62c4e631088e58e542c3185a215f57e.tar.bz2 rneovim-7eae32b3a62c4e631088e58e542c3185a215f57e.zip | |
Merge #782 'Initialize Object, Position'
Diffstat (limited to 'src/nvim/api/tabpage.c')
| -rw-r--r-- | src/nvim/api/tabpage.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/api/tabpage.c b/src/nvim/api/tabpage.c index b7243c68a8..ce52466d12 100644 --- a/src/nvim/api/tabpage.c +++ b/src/nvim/api/tabpage.c @@ -42,11 +42,10 @@ WindowArray tabpage_get_windows(Tabpage tabpage, Error *err) Object tabpage_get_var(Tabpage tabpage, String name, Error *err) { - Object rv; tabpage_T *tab = find_tab(tabpage, err); if (!tab) { - return rv; + return (Object) OBJECT_INIT; } return dict_get_value(tab->tp_vars, name, err); @@ -54,11 +53,10 @@ Object tabpage_get_var(Tabpage tabpage, String name, Error *err) Object tabpage_set_var(Tabpage tabpage, String name, Object value, Error *err) { - Object rv; tabpage_T *tab = find_tab(tabpage, err); if (!tab) { - return rv; + return (Object) OBJECT_INIT; } return dict_set_value(tab->tp_vars, name, value, err); |
