[farsight2/master] fix error

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:24:34 PST 2008


---
 fs-upnp-simple-igd.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/fs-upnp-simple-igd.c b/fs-upnp-simple-igd.c
index e40c01c..dc76abd 100644
--- a/fs-upnp-simple-igd.c
+++ b/fs-upnp-simple-igd.c
@@ -319,11 +319,8 @@ _service_proxy_got_external_ip_address (GUPnPServiceProxy *proxy,
   }
   else
   {
-    GQuark detail = 0;
-    if (error)
-      detail = error->domain;
-
-    g_signal_emit (self, signals[SIGNAL_ERROR], detail,
+    g_return_if_fail (error);
+    g_signal_emit (self, signals[SIGNAL_ERROR], error->domain,
         error);
   }
   g_clear_error (&error);
-- 
1.5.6.5




More information about the farsight-commits mailing list