Swap return value and argument of imap_threaded_capability()
[claws.git] / src / imap.c
index 32ecd3861fef894c022260a3ea82826f425c72f1..35fb47f78e02d3495f58717a715ff3beb17b3d42 100644 (file)
@@ -835,12 +835,12 @@ static int imap_get_capabilities(IMAPSession *session)
 {
        struct mailimap_capability_data *capabilities = NULL;
        clistiter *cur;
-       int result = -1;
+       int result;
 
        if (session->capability != NULL)
                return MAILIMAP_NO_ERROR;
 
-       capabilities = imap_threaded_capability(session->folder, &result);
+       result = imap_threaded_capability(session->folder, &capabilities);
 
        if (result != MAILIMAP_NO_ERROR) {
                return result;