changeset 818:8fd626b43f88

fixed segfault in vd_rename_cb
author nadvornik
date Tue, 10 Jun 2008 18:39:19 +0000
parents ad7f56cea841
children c90eb9539f6e
files src/view_dir.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_dir.c	Tue Jun 10 18:19:17 2008 +0000
+++ b/src/view_dir.c	Tue Jun 10 18:39:19 2008 +0000
@@ -209,14 +209,13 @@
 {
 	ViewDir *vd = data;
 	FileData *fd;
-	gchar *old_path;
 	gchar *new_path;
 	gchar *base;
 
 	fd = vd_get_fd_from_tree_path(vd, GTK_TREE_VIEW(vd->view), td->path);
 	if (!fd) return FALSE;
 
-	base = remove_level_from_path(old_path);
+	base = remove_level_from_path(fd->path);
 	new_path = g_build_filename(base, new, NULL);
 	g_free(base);