aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/filter_prefs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-10-24 06:13:07 +0000
committerGuy Harris <guy@alum.mit.edu>2001-10-24 06:13:07 +0000
commitd453f6d99253d5946a4c150c57a7ab8bce2a0715 (patch)
treead8ca8b08b9ff2a10d2456edf4bc10b4e65b26df /gtk/filter_prefs.c
parent7e27e176c0e8cedb6cbf94dad30c7ac2ca889252 (diff)
On Windows, put Ethereal configuration files under the "Application
Data\Ethereal" directory under the user's profile, as that appears to be the Windows 2000 standard. svn path=/trunk/; revision=4071
Diffstat (limited to 'gtk/filter_prefs.c')
-rw-r--r--gtk/filter_prefs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/filter_prefs.c b/gtk/filter_prefs.c
index 50f645035d..44f0b391a3 100644
--- a/gtk/filter_prefs.c
+++ b/gtk/filter_prefs.c
@@ -3,7 +3,7 @@
* (This used to be a notebook page under "Preferences", hence the
* "prefs" in the file name.)
*
- * $Id: filter_prefs.c,v 1.31 2001/10/23 05:01:02 guy Exp $
+ * $Id: filter_prefs.c,v 1.32 2001/10/24 06:13:06 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -708,7 +708,7 @@ static void
filter_dlg_save_cb(GtkWidget *save_bt, gpointer data)
{
filter_list_type_t list = *(filter_list_type_t *)data;
- const char *pf_dir_path;
+ char *pf_dir_path;
char *f_path;
int f_save_errno;
char *filter_type;
@@ -719,6 +719,7 @@ filter_dlg_save_cb(GtkWidget *save_bt, gpointer data)
simple_dialog(ESD_TYPE_WARN, NULL,
"Can't create directory\n\"%s\"\nfor filter files: %s.",
pf_dir_path, strerror(errno));
+ g_free(pf_dir_path);
return;
}