commit | aaf84cb10f3da539943bc44267ffd17b8058ce7e | [log] [tgz] |
---|---|---|
author | Joshua Haberman <jhaberman@gmail.com> | Mon Jun 29 10:31:20 2020 -0700 |
committer | GitHub <noreply@github.com> | Mon Jun 29 10:31:20 2020 -0700 |
tree | 5a5515e02232ba55feb9033b18f1c3667bc17fd3 | |
parent | 2c1a46101bf49349f2725c2eaa264afab405fb0d [diff] |
Bugfix for when message constructor has no argument. (#7660) This fixes the user issue: https://github.com/protocolbuffers/protobuf/issues/7611#issuecomment-647025031
diff --git a/php/ext/google/protobuf2/message.c b/php/ext/google/protobuf2/message.c index 6c28dee..20dd37a 100644 --- a/php/ext/google/protobuf2/message.c +++ b/php/ext/google/protobuf2/message.c
@@ -366,7 +366,7 @@ const Descriptor* desc = Descriptor_GetFromClassEntry(Z_OBJCE_P(getThis())); const upb_msgdef *msgdef = desc->msgdef; upb_arena *arena = Arena_Get(&intern->arena); - zval *init_arr; + zval *init_arr = NULL; intern->desc = desc; intern->msg = upb_msg_new(msgdef, arena);