api: initialize capacity in the array_dict_macro

This commit is contained in:
Thiago de Arruda 2014-09-11 10:34:51 -03:00
parent fa01ea8ead
commit d29b62daab

View File

@ -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