diff options
Diffstat (limited to 'src/contact.c')
-rw-r--r-- | src/contact.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contact.c b/src/contact.c index 29c767d8..e0853f72 100644 --- a/src/contact.c +++ b/src/contact.c @@ -335,7 +335,7 @@ p_contact_get_available_resources(const PContact contact) GList *curr_resource = resources; while (curr_resource) { - Resource *resource = resources->data; + Resource *resource = curr_resource->data; ordered = g_list_insert_sorted(ordered, resource, (GCompareFunc)resource_compare_availability); curr_resource = g_list_next(curr_resource); } |