aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/ext/google/protobuf/array.c
diff options
context:
space:
mode:
authorGravatar Bo Yang <teboring@google.com>2016-10-05 10:54:39 -0700
committerGravatar Bo Yang <teboring@google.com>2016-10-10 11:44:54 -0700
commit4f3d20a500e75ef47004986fece3db20ddeee43f (patch)
treec4fa543a4ebae98c3762270edf3c3c07211782ce /php/ext/google/protobuf/array.c
parent1e5d4ba9387362ece026e78148f4ac5881537e64 (diff)
Fix segmentation fault when ZTS is defined.
Diffstat (limited to 'php/ext/google/protobuf/array.c')
-rw-r--r--php/ext/google/protobuf/array.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/php/ext/google/protobuf/array.c b/php/ext/google/protobuf/array.c
index f96e95ec..c24ede81 100644
--- a/php/ext/google/protobuf/array.c
+++ b/php/ext/google/protobuf/array.c
@@ -160,8 +160,7 @@ static void repeated_field_write_dimension(zval *object, zval *offset,
unsigned char memory[NATIVE_SLOT_MAX_SIZE];
memset(memory, 0, NATIVE_SLOT_MAX_SIZE);
- if (!native_slot_set(intern->type, intern->msg_ce, memory, value
- TSRMLS_CC)) {
+ if (!native_slot_set(intern->type, intern->msg_ce, memory, value TSRMLS_CC)) {
return;
}