- fixed write element of array response type-inconsistent

pull/345/head
Kevin Jhang 4 years ago
parent 48ae311a05
commit 68b45f749b

@ -232,7 +232,7 @@ bool
MmsValue_update(MmsValue* self, const MmsValue* update) MmsValue_update(MmsValue* self, const MmsValue* update)
{ {
if (self && update) { if (self && update) {
if (self->type == update->type) { if (self->type == update->type || (self->type == MMS_STRUCTURE && update->type == MMS_ARRAY)) {
switch (self->type) switch (self->type)
{ {
case MMS_STRUCTURE: case MMS_STRUCTURE:

Loading…
Cancel
Save