[gupnp] Use g_propagate_error
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] Use g_propagate_error
- Date: Sat, 24 May 2014 17:17:46 +0000 (UTC)
commit bbff7f8836557e501736f3a61ea24538bad1bccd
Author: Jens Georg <mail jensge org>
Date: Sat May 24 19:04:30 2014 +0200
Use g_propagate_error
Signed-off-by: Jens Georg <mail jensge org>
libgupnp/gupnp-service-proxy.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index ec1253b..9747889 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -1440,11 +1440,7 @@ gupnp_service_proxy_end_action_list (GUPnPServiceProxy *proxy,
/* Check for saved error from begin_action() */
if (action->error) {
- if (error)
- *error = action->error;
- else
- g_error_free (action->error);
-
+ g_propagate_error (error, action->error);
gupnp_service_proxy_action_free (action);
return FALSE;
@@ -1511,11 +1507,7 @@ gupnp_service_proxy_end_action_hash (GUPnPServiceProxy *proxy,
/* Check for saved error from begin_action() */
if (action->error) {
- if (error)
- *error = action->error;
- else
- g_error_free (action->error);
-
+ g_propagate_error (error, action->error);
gupnp_service_proxy_action_free (action);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]