[Xfce4-commits] <thunar:master> Fix segfault when going back to removed directory (bug #9831).

Nick Schermer noreply at xfce.org
Mon Apr 29 19:12:01 CEST 2013


Updating branch refs/heads/master
         to 682907934beaf00cfe8b48295ac3d758bb566930 (commit)
       from 1072df4b6bae4302c2f3a67e89ace3ed6b35ccd6 (commit)

commit 682907934beaf00cfe8b48295ac3d758bb566930
Author: Oyvind Ingvaldsen <oyvind.ingvaldsen at gmail.com>
Date:   Mon Apr 29 19:10:12 2013 +0200

    Fix segfault when going back to removed directory (bug #9831).

 thunar/thunar-history.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/thunar/thunar-history.c b/thunar/thunar-history.c
index ba2939e..fd99e7e 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);


More information about the Xfce4-commits mailing list