[librest] proxycall: remove double-assign to status_{code,message}



commit 61ef7faec8a9cf434bea4ac628824428172acaac
Author: Timm Bäder <mail baedert org>
Date:   Sat Mar 25 09:20:54 2017 +0100

    proxycall: remove double-assign to status_{code,message}
    
    This is already done in finish_call and the g_strdup to
    priv->status_message was leaking the previously set one.

 rest/rest-proxy-call.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 2d2ac58..72c8261 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -1057,9 +1057,6 @@ _upload_call_message_completed_cb (SoupSession *session,
   call = closure->call;
   priv = GET_PRIVATE (call);
 
-  priv->status_code = message->status_code;
-  priv->status_message = g_strdup (message->reason_phrase);
-
   finish_call (call, message, &error);
 
   closure->callback (closure->call,


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