r14410: init a var
authorAndrew Tridgell <tridge@samba.org>
Wed, 15 Mar 2006 02:39:22 +0000 (02:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:20 +0000 (13:57 -0500)
(This used to be commit 59bc3e8ab0f9722b0292465b20f3876b25095418)

source4/gtk/tools/gregedit.c

index fdbf5357ea412a167990f7eddbcf7894d2476acf..6a05b5ef0c4160c7be9ccfe44119059e60260424 100644 (file)
@@ -435,7 +435,7 @@ static void on_open_remote_activate(GtkMenuItem *menuitem, gpointer user_data)
 static void on_save_as_activate(GtkMenuItem *menuitem, gpointer user_data)
 {
        gint result;
-       WERROR error;
+       WERROR error = WERR_OK;
        GtkWidget *savefilewin = create_savefilewin();
        result = gtk_dialog_run(GTK_DIALOG(savefilewin));
        switch(result) {