[librest/wip/baedert/tests] RestProxyCall: Pass correct pointer in _upload



commit 07980ea40b9623533e36b1bef2dad518c39357db
Author: Timm Bäder <mail baedert org>
Date:   Sun Jul 31 11:51:26 2016 +0200

    RestProxyCall: Pass correct pointer in _upload

 rest/rest-proxy-call.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index a4a29c8..568c334 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -641,10 +641,10 @@ _continuous_call_message_completed_cb (SoupSession *session,
                                        gpointer     user_data)
 {
   GTask *task = user_data;
-  RestProxyCallContinuousClosure *closure;
   RestProxyCall *call;
   RestProxyCallPrivate *priv;
   GError *error = NULL;
+  RestProxyCallContinuousClosure *closure;
 
   closure = (RestProxyCallContinuousClosure *)g_task_get_task_data (task);
   call = closure->call;
@@ -1126,8 +1126,8 @@ rest_proxy_call_upload (RestProxyCall                *call,
                         gpointer                      user_data)
 {
   RestProxyCallPrivate *priv = GET_PRIVATE (call);
-  GError *error = NULL;
   GTask *task;
+  GError *error = NULL;
   SoupMessage *message;
   RestProxyCallUploadClosure *closure;
 
@@ -1176,7 +1176,7 @@ rest_proxy_call_upload (RestProxyCall                *call,
   _rest_proxy_queue_message (priv->proxy,
                              message,
                              _upload_call_message_completed_cb,
-                             closure);
+                             task);
 }
 
 gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]