[gnome-builder] glade: fix an unitialized return value



commit 9a88c7e7af3d18adf789be36c8e7731f81f2cc31
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Tue Oct 30 16:00:29 2018 +0100

    glade: fix an unitialized return value
    
    The return value is not used for now
    but at least this will shut up the warning.

 src/plugins/glade/gbp-glade-view.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/glade/gbp-glade-view.c b/src/plugins/glade/gbp-glade-view.c
index b191d718d..9a443fedb 100644
--- a/src/plugins/glade/gbp-glade-view.c
+++ b/src/plugins/glade/gbp-glade-view.c
@@ -147,7 +147,6 @@ gboolean
 _gbp_glade_view_reload (GbpGladeView *self)
 {
   GladeProject *project;
-  gboolean ret;
 
   g_return_val_if_fail (GBP_IS_GLADE_VIEW (self), FALSE);
   g_return_val_if_fail (GLADE_IS_PROJECT (self->project), FALSE);
@@ -172,9 +171,11 @@ _gbp_glade_view_reload (GbpGladeView *self)
     {
       gtk_widget_hide (GTK_WIDGET (self));
       gtk_widget_show (GTK_WIDGET (self));
+
+      return TRUE;
     }
 
-  return ret;
+  return FALSE;
 }
 
 gboolean


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