[gtk+/gtk-3-6] GtkAboutDialog: Initialize a variable



commit cea2b80f4075aa924813c29e9df3dd7f8b65b59a
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 29 23:01:10 2012 -0500

    GtkAboutDialog: Initialize a variable
    
    Coverity complains about it being uninitialized, otherwise.

 gtk/gtkaboutdialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 287ec9a..7980d93 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2395,6 +2395,8 @@ create_credits_page (GtkAboutDialog *about)
   gtk_widget_set_valign (grid, GTK_ALIGN_START);
   gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), grid);
 
+  row = 0;
+
   if (priv->authors != NULL)
     add_credits_section (about, GTK_GRID (grid), &row, _("Created by"), priv->authors);
 



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