diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-12-31 00:29:09 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-12-31 00:29:09 +0000 |
commit | 9fe8c656b587cd0df95780221cc3f7ddec4c4b47 (patch) | |
tree | 10aa570a860d5dc60c779a4a19f1ebca1a3b0304 /color_filters.c | |
parent | 0bf02e178e873c8b9c346021f6cb4df1b00f0cf0 (diff) |
"get_persconffile_path()" doesn't return a "const char *", it just
returns a "char *", so don't assign its return value to a "const char *".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12882 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'color_filters.c')
-rw-r--r-- | color_filters.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/color_filters.c b/color_filters.c index f5637ee034..6382cef405 100644 --- a/color_filters.c +++ b/color_filters.c @@ -445,7 +445,7 @@ gboolean revert_filters(void) { gchar *pf_dir_path; - const gchar *path; + gchar *path; /* Create the directory that holds personal configuration files, if necessary. */ @@ -459,11 +459,11 @@ revert_filters(void) path = get_persconffile_path("colorfilters", TRUE); if (!deletefile(path)) { - g_free((gchar *)path); + g_free(path); return FALSE; } - g_free((gchar *)path); + g_free(path); /* Reload the (global) filters - Note: this does not update the dialog. */ colfilter_init(); |