summaryrefslogtreecommitdiff
path: root/rest/rest-proxy-call.c
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2008-09-17 11:22:31 +0100
committerRob Bradford <rob@linux.intel.com>2008-09-17 11:23:27 +0100
commitba6823edfc8b525397d2afb887aa531265cc3495 (patch)
tree5fa3ebc33960fb5c115313ab21b8feaa0ec552d7 /rest/rest-proxy-call.c
parentb4cc088ed6904785d220721314c2349c1c38e864 (diff)
Only copy the error if it's non-null.
Diffstat (limited to 'rest/rest-proxy-call.c')
-rw-r--r--rest/rest-proxy-call.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 6e452e8..7b91d76 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -540,7 +540,9 @@ _rest_proxy_call_async_cb (RestProxyCall *call,
RestProxyCallRunClosure *closure = (RestProxyCallRunClosure *)userdata;
/* *duplicate* not propagate the error */
- closure->error = g_error_copy (error);
+ if (error)
+ closure->error = g_error_copy (error);
+
g_main_loop_quit (closure->loop);
}