From 458c9840340ac4185a0326feedb933c2ba63aae9 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 16 Aug 2014 14:29:45 +0200 Subject: [PATCH] Code beautification --- src/ag-window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ag-window.c b/src/ag-window.c index 1c95576..e0af7b1 100644 --- a/src/ag-window.c +++ b/src/ag-window.c @@ -947,7 +947,7 @@ ag_window_save_action(GSimpleAction *action, AgWindow *window = AG_WINDOW(user_data); AgWindowPrivate *priv = ag_window_get_instance_private(window); AgDb *db = ag_db_get(); - GError *err; + GError *err = NULL; gint old_id; AgDbSave *save_data; @@ -976,7 +976,7 @@ ag_window_close_action(GSimpleAction *action, GVariant *parameter, gpointer user_data) { - AgWindow *window = AG_WINDOW(user_data); + AgWindow *window = AG_WINDOW(user_data); if (ag_window_can_close(window, TRUE)) { gtk_widget_destroy(GTK_WIDGET(window));