[Xfce4-commits] <thunar-vcs-plugin:master> Fix crash in tsh_tree_get_iter_for_path().
Stefan Sperling
noreply at xfce.org
Mon Sep 3 16:26:02 CEST 2012
Updating branch refs/heads/master
to 90df17306c18cb0c8c20e2f38b9213c3371f301a (commit)
from 931f8a0a9cd93ce303608a1bfc2b5f1964cb67d0 (commit)
commit 90df17306c18cb0c8c20e2f38b9213c3371f301a
Author: Stefan Sperling <stsp at stsp.name>
Date: Sun Aug 19 17:59:24 2012 +0200
Fix crash in tsh_tree_get_iter_for_path().
Don't add items with NULL paths to the tree model.
Fixes crashes observed while browsing log history.
tvp-svn-helper/tsh-tree-common.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/tvp-svn-helper/tsh-tree-common.c b/tvp-svn-helper/tsh-tree-common.c
index 31484f0..fbd2905 100644
--- a/tvp-svn-helper/tsh-tree-common.c
+++ b/tvp-svn-helper/tsh-tree-common.c
@@ -243,7 +243,10 @@ tsh_tree_get_iter_for_path (GtkTreeStore *model, const gchar *file, GtkTreeIter
}
}
- gtk_tree_store_append (model, iter, parent);
- gtk_tree_store_set (model, iter, path_column, relative_file, -1);
+ if (relative_file)
+ {
+ gtk_tree_store_append (model, iter, parent);
+ gtk_tree_store_set (model, iter, path_column, relative_file, -1);
+ }
}
More information about the Xfce4-commits
mailing list