diff options
Diffstat (limited to 'src/upb_data.c')
-rw-r--r-- | src/upb_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_data.c b/src/upb_data.c index 01acef8..58aee8a 100644 --- a/src/upb_data.c +++ b/src/upb_data.c @@ -74,7 +74,7 @@ static void _upb_string_set_bytelen(upb_strptr s, upb_strlen_t newlen) { upb_strptr upb_string_new() { upb_strptr s; - s.refcounted = malloc(sizeof(upb_refcounted_string)); + s.refcounted = malloc(sizeof(struct upb_refcounted_string)); data_init(s.base, UPB_DATA_HEAPALLOCATED | UPB_DATA_REFCOUNTED); s.refcounted->byte_size = 0; s.refcounted->byte_len = 0; |