This email list is read-only. Emails sent to this list will be discarded ---------------------------------- common/connman-dbus.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)
New commits: commit 12c2eab4c0bce8ed6f5f31d01811ac2ce710fd0a Author: Marcel Holtmann <[email protected]> Date: Thu Dec 18 22:58:45 2008 +0100 Check for errors from properties callback Diff in this email is a maximum of 400 lines. diff --git a/common/connman-dbus.c b/common/connman-dbus.c index 4b7c049..407a53e 100644 --- a/common/connman-dbus.c +++ b/common/connman-dbus.c @@ -288,7 +288,9 @@ static void network_properties(DBusGProxy *proxy, GHashTable *hash, guint strength, security; GtkTreeIter iter, parent; - if (hash == NULL) + DBG("store %p proxy %p hash %p", store, proxy, hash); + + if (error != NULL || hash == NULL) goto done; value = g_hash_table_lookup(hash, "Device"); @@ -380,7 +382,9 @@ static void device_properties(DBusGProxy *proxy, GHashTable *hash, gboolean powered; GtkTreeIter iter; - if (hash == NULL) + DBG("store %p proxy %p hash %p", store, proxy, hash); + + if (error != NULL || hash == NULL) goto done; value = g_hash_table_lookup(hash, "Name"); @@ -526,6 +530,9 @@ static void manager_properties(DBusGProxy *proxy, GHashTable *hash, DBG("store %p proxy %p hash %p", store, proxy, hash); + if (error != NULL || hash == NULL) + return; + value = g_hash_table_lookup(hash, "State"); state = value ? g_value_dup_string(value) : NULL; g_object_set_data(G_OBJECT(store), "State", state); _______________________________________________ Commits mailing list [email protected] https://lists.moblin.org/mailman/listinfo/commits
