about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-11-13 01:19:20 +0000
committerJames Booth <boothj5@gmail.com>2014-11-13 01:19:20 +0000
commitdad8e2799d210d5029cf0fd8bdccf2cb31adf160 (patch)
treed5653e93b0f2ad113c16610754a66f8ed3ef94d7 /src
parent0a7c16747b45c69b9c6e4aa5b384a84197a495f7 (diff)
downloadprofani-tty-dad8e2799d210d5029cf0fd8bdccf2cb31adf160.tar.gz
Fixed roster resource list
Diffstat (limited to 'src')
-rw-r--r--src/contact.c2
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);
     }