[gnome-color-manager] trivial: Specify the type of the empty array to avoid a critical warning from GVariant when there ar
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: Specify the type of the empty array to avoid a critical warning from GVariant when there ar
- Date: Fri, 25 Jun 2010 14:10:18 +0000 (UTC)
commit 0cd699f41b81aeabcaeda1027a2f2f2a8c191466
Author: Richard Hughes <richard hughsie com>
Date: Fri Jun 25 15:09:50 2010 +0100
trivial: Specify the type of the empty array to avoid a critical warning from GVariant when there are no entries
src/gcm-session.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-session.c b/src/gcm-session.c
index 2873d7c..38de287 100644
--- a/src/gcm-session.c
+++ b/src/gcm-session.c
@@ -286,7 +286,7 @@ gcm_session_variant_from_profile_array (GPtrArray *array)
GVariant *value;
/* create builder */
- builder = g_variant_builder_new (G_VARIANT_TYPE_ARRAY);
+ builder = g_variant_builder_new (G_VARIANT_TYPE("a(ss)"));
/* add each tuple to the array */
for (i=0; i<array->len; i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]