diff options
author | Olli Salli <olli.salli@collabora.co.uk> | 2007-06-01 10:58:51 +0000 |
---|---|---|
committer | Olli Salli <olli.salli@collabora.co.uk> | 2007-06-01 10:58:51 +0000 |
commit | ee02fdd45a291af37b9ecc0e372f8680fc53572c (patch) | |
tree | 96bc2e4899ddadd431fe727603cd13822994c9c7 | |
parent | 0c991d694a968685a4a5944fd6f4ef16316e518b (diff) |
Don't try to iterate the optional argument specs in set_status_foreach if there aren't any
-rw-r--r-- | telepathy-glib/presence-mixin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-glib/presence-mixin.c b/telepathy-glib/presence-mixin.c index b56802e35..3e8fa698d 100644 --- a/telepathy-glib/presence-mixin.c +++ b/telepathy-glib/presence-mixin.c @@ -774,7 +774,7 @@ set_status_foreach (gpointer key, gpointer value, gpointer user_data) const TpPresenceStatusOptionalArgumentSpec *specs = mixin_cls->statuses[i].optional_arguments; - for (j=0; specs[j].name != NULL; j++) + for (j=0; specs != NULL && specs[j].name != NULL; j++) { GValue *provided_value = g_hash_table_lookup (provided_arguments, specs[j].name); |