GVariant: fix for not having offset for empty arrays 05/142905/2 accepted/tizen/4.0/unified/20170828.222508 accepted/tizen/unified/20170808.171336 accepted/tizen/unified/20170811.021149 submit/tizen/20170808.013620 submit/tizen/20170810.123503 submit/tizen_4.0/20170828.100005
authorAdrian Szyndela <adrian.s@samsung.com>
Mon, 7 Aug 2017 14:38:00 +0000 (16:38 +0200)
committerINSUN PYO <insun.pyo@samsung.com>
Tue, 8 Aug 2017 01:12:31 +0000 (10:12 +0900)
commitda21875dc5a917d14c8903304d237610e5714ef0
treed91ba52e92f8a514612a0df2ace55866e698536a
parent59aae7b82d79848f2f188f8b9bfa15d29cd6addc
GVariant: fix for not having offset for empty arrays

GVariant requires offsets for variable length struct
members. Empty variable-size arrays which are at the beginning
of a struct have offset 0. However, 0 was used as
the indicator that there should be no offset added.
This patch changes 0 to the impossible value.

Change-Id: Icbc18e87831a20727f142a1218e6736e76bcce82
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
dbus/dbus-marshal-gvariant.c
dbus/dbus-marshal-gvariant.h
dbus/dbus-marshal-recursive.c
dbus/dbus-message.c