Commit 766d3848 authored by Stef Walter's avatar Stef Walter
Browse files

Fix "Non-void function should return a value"

https://bugzilla.gnome.org/show_bug.cgi?id=722023
parent 7b1de40c
......@@ -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);
}
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment