projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0852420
)
fixed segfault in vd_rename_cb
author
Vladimir Nadvornik
<nadvornik@suse.cz>
Tue, 10 Jun 2008 18:39:19 +0000
(18:39 +0000)
committer
Vladimir Nadvornik
<nadvornik@suse.cz>
Tue, 10 Jun 2008 18:39:19 +0000
(18:39 +0000)
src/view_dir.c
patch
|
blob
|
history
diff --git
a/src/view_dir.c
b/src/view_dir.c
index
a55f914
..
760a663
100644
(file)
--- a/
src/view_dir.c
+++ b/
src/view_dir.c
@@
-209,14
+209,13
@@
static gint vd_rename_cb(TreeEditData *td, const gchar *old, const gchar *new, g
{
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);