diff options
author | Rob Bradford <rob@linux.intel.com> | 2010-09-04 13:12:37 +0100 |
---|---|---|
committer | Rob Bradford <rob@linux.intel.com> | 2010-09-13 12:27:15 +0100 |
commit | fc1fb17237e1fc6ae5401681fc49c7e68a41906e (patch) | |
tree | 2e0604bc8feddf3bc663eb240489d2c82e82d6eb /rest | |
parent | 46c588e3bbd0af1fb1c17aff59fa3453da760b56 (diff) |
proxy-call: Use g_error_set_literal for content from the web server
Fixes: http://bugs.meego.com/show_bug.cgi?id=6295
Diffstat (limited to 'rest')
-rw-r--r-- | rest/rest-proxy-call.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |