summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/gtk/tools/gregedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/gtk/tools/gregedit.c b/source4/gtk/tools/gregedit.c
index fdbf5357ea..6a05b5ef0c 100644
--- a/source4/gtk/tools/gregedit.c
+++ b/source4/gtk/tools/gregedit.c
@@ -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) {