GVariant: don't remove padding from no field 37/123937/1 accepted/tizen/unified/20170410.155846 submit/tizen/20170410.050637
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 7 Apr 2017 16:35:58 +0000 (18:35 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Fri, 7 Apr 2017 16:39:57 +0000 (18:39 +0200)
commit1d825017e4c6766fc5aee6520f6655333cf72d29
tree1aedd972a0d9e2943c7f0b4c28201d175aea8d0c
parentca4bac5403a96780459eea64f36f45c773bb4ed4
GVariant: don't remove padding from no field

When a message is created with dbus_message_new() it gets no fields.
Then, while appending some values, but before setting path, interface,
etc. a single field appears - signature. If there would be more fields,
then after deleting the last field we would need to remove padding
from second-to-last field. In case of a single field, we have
no second-to-last field, only empty dictionary. Empty dictionaries do
not have padding at the end, so we do not need to remove it.

Change-Id: Idb15f3999a3ff0117f906ec632f462eb5cdaab09
dbus/dbus-marshal-gvariant.c