diff options
Diffstat (limited to 'src/core/json/json_reader.c')
-rw-r--r-- | src/core/json/json_reader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/json/json_reader.c b/src/core/json/json_reader.c index 774faa5f23..5ea4e9569c 100644 --- a/src/core/json/json_reader.c +++ b/src/core/json/json_reader.c @@ -93,7 +93,7 @@ static void json_reader_set_null(grpc_json_reader* reader) { /* Call this function to initialize the reader structure. */ void grpc_json_reader_init(grpc_json_reader* reader, grpc_json_reader_vtable* vtable, void* userdata) { - memset(reader, 0, sizeof(grpc_json_reader)); + memset(reader, 0, sizeof(*reader)); reader->vtable = vtable; reader->userdata = userdata; json_reader_string_clear(reader); |