[epiphany] Initialize some variables to NULL



commit 2832b4b4282019a426f31bb4f915f5e982167155
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jan 3 09:21:28 2017 -0600

    Initialize some variables to NULL

 lib/widgets/ephy-location-entry.c      |    2 +-
 src/bookmarks/ephy-bookmarks-popover.c |    2 +-
 src/window-commands.c                  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 403d6a9..72b7e12 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -637,7 +637,7 @@ entry_populate_popup_cb (GtkEntry          *entry,
   GtkWidget *redo_menuitem;
   GtkWidget *paste_and_go_menuitem;
   GtkWidget *separator;
-  GtkWidget *paste_menuitem;
+  GtkWidget *paste_menuitem = NULL;
   GList *children, *item;
   int pos = 0, sep = 0;
   gboolean is_editable;
diff --git a/src/bookmarks/ephy-bookmarks-popover.c b/src/bookmarks/ephy-bookmarks-popover.c
index 5f61e0c..a53921f 100644
--- a/src/bookmarks/ephy-bookmarks-popover.c
+++ b/src/bookmarks/ephy-bookmarks-popover.c
@@ -239,7 +239,7 @@ ephy_bookmarks_popover_bookmark_removed_cb (EphyBookmarksPopover *self,
                                             EphyBookmark         *bookmark,
                                             EphyBookmarksManager *manager)
 {
-  GtkWidget *row;
+  GtkWidget *row = NULL;
   GList *children;
   GList *l;
 
diff --git a/src/window-commands.c b/src/window-commands.c
index caf1b79..72f2b7f 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -330,7 +330,7 @@ dialog_bookmarks_import_cb (GtkDialog   *dialog,
     } else if (active == 1) {
       GError *error = NULL;
       GSList *profiles;
-      gchar *profile;
+      gchar *profile = NULL;
       int num_profiles;
 
       profiles = get_firefox_profiles ();


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