From 682907934beaf00cfe8b48295ac3d758bb566930 Mon Sep 17 00:00:00 2001 From: Oyvind Ingvaldsen <oyvind.ingvaldsen@gmail.com> Date: Mon, 29 Apr 2013 19:10:12 +0200 Subject: [PATCH] Fix segfault when going back to removed directory (bug #9831). --- thunar/thunar-history.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/thunar/thunar-history.c b/thunar/thunar-history.c index ba2939e67..fd99e7eec 100644 --- a/thunar/thunar-history.c +++ b/thunar/thunar-history.c @@ -347,9 +347,10 @@ thunar_history_error_not_found (GFile *goto_file, gpointer parent) { gchar *parse_name; - GError *error; + GError *error = NULL; - g_set_error_literal (&error, G_FILE_ERROR, G_FILE_ERROR_EXIST, _("The item will be removed from the history")); + g_set_error_literal (&error, G_FILE_ERROR, G_FILE_ERROR_EXIST, + _("The item will be removed from the history")); parse_name = g_file_get_parse_name (goto_file); thunar_dialogs_show_error (parent, error, _("Could not find \"%s\""), parse_name); -- GitLab