diff options
author | Nathaniel Manista <nathaniel@google.com> | 2015-07-22 15:12:07 -0700 |
---|---|---|
committer | Nathaniel Manista <nathaniel@google.com> | 2015-07-22 15:12:07 -0700 |
commit | 6a7418cd20f065f8d6e7f73e82b6d465c75514f5 (patch) | |
tree | c729fb3963d78be9b191559c8649095b50bd0f16 | |
parent | 73a31c50bbaabce265529831a5834d204d5f59af (diff) | |
parent | b6d613730f2b0d8f47973f7be578c3665ec1365c (diff) |
Merge pull request #2609 from soltanmm/c89
Fix Python C89 pedantry in _adapter/_c/utility.c
-rw-r--r-- | src/python/src/grpc/_adapter/_c/utility.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/src/grpc/_adapter/_c/utility.c b/src/python/src/grpc/_adapter/_c/utility.c index 000c8d0c38..d9f911a41a 100644 --- a/src/python/src/grpc/_adapter/_c/utility.c +++ b/src/python/src/grpc/_adapter/_c/utility.c @@ -489,10 +489,10 @@ PyObject *pygrpc_cast_metadata_array_to_pyseq(grpc_metadata_array metadata) { void pygrpc_byte_buffer_to_bytes( grpc_byte_buffer *buffer, char **result, size_t *result_size) { grpc_byte_buffer_reader reader; - grpc_byte_buffer_reader_init(&reader, buffer); gpr_slice slice; char *read_result = NULL; size_t size = 0; + grpc_byte_buffer_reader_init(&reader, buffer); while (grpc_byte_buffer_reader_next(&reader, &slice)) { read_result = gpr_realloc(read_result, size + GPR_SLICE_LENGTH(slice)); memcpy(read_result + size, GPR_SLICE_START_PTR(slice), |