From fc1fb17237e1fc6ae5401681fc49c7e68a41906e Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Sat, 4 Sep 2010 13:12:37 +0100 Subject: proxy-call: Use g_error_set_literal for content from the web server Fixes: http://bugs.meego.com/show_bug.cgi?id=6295 --- rest/rest-proxy-call.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rest') diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c index baacb77..efd8a05 100644 --- a/rest/rest-proxy-call.c +++ b/rest/rest-proxy-call.c @@ -528,7 +528,7 @@ _populate_headers_hash_table (const gchar *name, } /* I apologise for this macro, but it saves typing ;-) */ -#define error_helper(x) g_set_error(error, REST_PROXY_ERROR, x, message->reason_phrase) +#define error_helper(x) g_set_error_literal(error, REST_PROXY_ERROR, x, message->reason_phrase) static gboolean _handle_error_from_message (SoupMessage *message, GError **error) { @@ -568,10 +568,10 @@ _handle_error_from_message (SoupMessage *message, GError **error) } /* If we are here we must be in some kind of HTTP error, lets try */ - g_set_error (error, - REST_PROXY_ERROR, - message->status_code, - message->reason_phrase); + g_set_error_literal (error, + REST_PROXY_ERROR, + message->status_code, + message->reason_phrase); return FALSE; } -- cgit v1.2.3