01org/dleyna-server — pull request #73 by lferrandis (2013-04-08 12:37:27+00:00)
Title: [Property] Fix a potential bug when setting Boolean gvariant

When setting a gboolean as the result of a bitfield operation,
the result could not be used directly in GVariant, using
g_variant_new_boolean or a call like
g_variant_builder_add(vb, "{sv}", key, g_variant_new_boolean(value));

gboolean is defined as gint
g_variant_new_boolean call internal function that only copy the first
byte of the gboolean.

ex:
gboolean x = 0x00000010 will work, and the GVariant = 0x10
gboolean x = 0x01000000 won't work. GVariant = 0;

We should not do: gboolean x = (x & y)
We must do: gboolean x = (x & y) != 0

Signed-off-by: Ludovic Ferrandis