diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-11 10:34:51 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-12 13:50:07 -0300 |
commit | d29b62daabd88e3c7ee9a979f4feae5612e3fbaf (patch) | |
tree | 08a446603521f69812628c2a6185ce8efa4c5711 /src | |
parent | fa01ea8ead051f9b933afc895824fb673f273671 (diff) | |
download | rneovim-d29b62daabd88e3c7ee9a979f4feae5612e3fbaf.tar.gz rneovim-d29b62daabd88e3c7ee9a979f4feae5612e3fbaf.tar.bz2 rneovim-d29b62daabd88e3c7ee9a979f4feae5612e3fbaf.zip |
api: initialize capacity in the array_dict_macro
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/api/private/defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h index 11800ed786..bae1819172 100644 --- a/src/nvim/api/private/defs.h +++ b/src/nvim/api/private/defs.h @@ -5,7 +5,7 @@ #include <stdbool.h> #include <string.h> -#define ARRAY_DICT_INIT {.size = 0, .items = NULL} +#define ARRAY_DICT_INIT {.size = 0, .capacity = 0, .items = NULL} #define STRING_INIT {.data = NULL, .size = 0} #define OBJECT_INIT { .type = kObjectTypeNil } #define REMOTE_TYPE(type) typedef uint64_t type |