[gupnp] service-proxy: Fix inverted boolean logic



commit 8639e6aa49d020f97b943bfdfad0202b497f800d
Author: Jens Georg <mail jensge org>
Date:   Tue May 28 22:11:15 2019 +0200

    service-proxy: Fix inverted boolean logic
    
    The implementation of the deprecated functions had inverted boolean
    condition on failure

 libgupnp/gupnp-service-proxy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index 38ff46a..8720ce6 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -456,7 +456,7 @@ gupnp_service_proxy_send_action_valist (GUPnPServiceProxy *proxy,
 
         handle = gupnp_service_proxy_action_new_from_list (action_name, in_names, in_values);
 
-        if (gupnp_service_proxy_call_action (proxy, handle, NULL,  error) != NULL) {
+        if (gupnp_service_proxy_call_action (proxy, handle, NULL,  error) == NULL) {
                 result = FALSE;
                 goto out;
         }
@@ -522,7 +522,7 @@ gupnp_service_proxy_send_action_list (GUPnPServiceProxy *proxy,
 
         handle = gupnp_service_proxy_action_new_from_list (action, in_names, in_values);
 
-        if (gupnp_service_proxy_call_action (proxy, handle, NULL, error) != NULL) {
+        if (gupnp_service_proxy_call_action (proxy, handle, NULL, error) == NULL) {
                 result = FALSE;
 
                 goto out;


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