[libdmapsharing] Fix bad error handling on soup_server_get_uris (Clang scan-build)



commit e9fe3e0416e7491eda100f372c7a3cd97183f60b
Author: W. Michael Petullo <mike flyn org>
Date:   Sun Jan 8 19:49:38 2017 -0500

    Fix bad error handling on soup_server_get_uris (Clang scan-build)
    
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-share.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libdmapsharing/dmap-share.c b/libdmapsharing/dmap-share.c
index 5c548e3..7c6d9f5 100644
--- a/libdmapsharing/dmap-share.c
+++ b/libdmapsharing/dmap-share.c
@@ -296,12 +296,8 @@ _dmap_share_server_start (DMAPShare *share)
        }
 
        listening_uri_list = soup_server_get_uris (share->priv->server);
-
-       if (error != NULL || listening_uri_list == NULL) {
-               g_warning ("Unable to start music sharing server on any port: %s. ",
-                          error->message);
-               g_clear_error (&error);
-
+       if (listening_uri_list == NULL) {
+               g_warning ("Unable to start music sharing server on any port.");
                return FALSE;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]