From 1c273e96ce0f0de66307eeab901d5e767adeff73 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 16 Jul 2005 17:03:21 +0000 Subject: [PATCH] r4015: Bugfix: The path entry buffer didn't work in /, due to recent changes (Thomas Leonard). --- ROX-Filer/Help/Changes | 2 ++ ROX-Filer/src/minibuffer.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ROX-Filer/Help/Changes b/ROX-Filer/Help/Changes index b38b9acd..fa74fdc0 100644 --- a/ROX-Filer/Help/Changes +++ b/ROX-Filer/Help/Changes @@ -9,6 +9,8 @@ Mark files as executable if their MIME type is a subclass of application/x-executable (Thomas Leonard). Removed the option for choosing panel side for -S, since we can use the new method of choosing the panel side indead (Thomas Leonard). +Bugfix: The path entry buffer didn't work in /, due to recent changes + (Thomas Leonard). 15-Jul-2005 ~~~~~~~~~~~ diff --git a/ROX-Filer/src/minibuffer.c b/ROX-Filer/src/minibuffer.c index d5ce21d3..3fe3ae59 100644 --- a/ROX-Filer/src/minibuffer.c +++ b/ROX-Filer/src/minibuffer.c @@ -430,7 +430,8 @@ static void path_changed(FilerWindow *filer_window) { GtkWidget *mini = filer_window->minibuffer; const char *rawnew, *leaf; - char *path, *new; + char *path; + char *new = NULL; gboolean error = FALSE; rawnew = gtk_entry_get_text(GTK_ENTRY(mini)); @@ -492,7 +493,6 @@ static void path_changed(FilerWindow *filer_window) path = g_strdup("/"); else path = g_path_get_dirname(new); - g_free(new); if (strcmp(path, filer_window->sym_path) != 0) { @@ -520,6 +520,7 @@ static void path_changed(FilerWindow *filer_window) error = TRUE; } + g_free(new); g_free(path); entry_set_error(mini, error); -- 2.11.4.GIT