[seahorse] Fix "Non-void function should return a value"



commit 766d384819348e644e2aa5c4e35a0950c1031f14
Author: Stef Walter <stefw gnome org>
Date:   Mon Jan 13 09:45:10 2014 +0100

    Fix "Non-void function should return a value"
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722023

 gkr/gkr-backend.vala              |    2 +-
 ssh/seahorse-ssh-key-properties.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gkr/gkr-backend.vala b/gkr/gkr-backend.vala
index 2bfe38a..d62c5af 100644
--- a/gkr/gkr-backend.vala
+++ b/gkr/gkr-backend.vala
@@ -148,7 +148,7 @@ public class Backend: GLib.Object , Gcr.Collection, Seahorse.Backend {
        }
 
        public static void initialize() {
-               return_if_fail(Backend._instance == null);
+               return_val_if_fail(Backend._instance == null, null);
                (new Backend()).register();
                return_if_fail(Backend._instance != null);
        }
diff --git a/ssh/seahorse-ssh-key-properties.c b/ssh/seahorse-ssh-key-properties.c
index 8780d84..2c5c015 100644
--- a/ssh/seahorse-ssh-key-properties.c
+++ b/ssh/seahorse-ssh-key-properties.c
@@ -364,7 +364,7 @@ seahorse_ssh_key_properties_show (SeahorseSSHKey *skey,
     do_details (swidget);
     
     widget = seahorse_widget_get_widget (swidget, "comment-entry");
-    g_return_if_fail (widget != NULL);
+    g_return_val_if_fail (widget != NULL, NULL);
 
     /* A public key only */
     if (seahorse_object_get_usage (SEAHORSE_OBJECT (skey)) != SEAHORSE_USAGE_PRIVATE_KEY) {


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