diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-26 03:27:46 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-26 03:27:46 +0000 |
commit | f59d6309e58bc85a4d7c27ec2c7bc25319aace34 (patch) | |
tree | 2175a58e9c75fdfd53773c9b0e9347fc962fe224 /color_filters.c | |
parent | c7eceb44e4bf88bcc475d8183d9c9727d5bda456 (diff) |
There's no need to create a directory just because you're about to
remove a file in it - the directory presumably exists already, if you're
about to remove a file in it.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13914 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'color_filters.c')
-rw-r--r-- | color_filters.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/color_filters.c b/color_filters.c index b2572a60e6..951921ff15 100644 --- a/color_filters.c +++ b/color_filters.c @@ -440,19 +440,8 @@ color_filters_write(void) gboolean color_filters_revert(void) { - gchar *pf_dir_path; gchar *path; - /* Create the directory that holds personal configuration files, - if necessary. */ - if (create_persconffile_dir(&pf_dir_path) == -1) { - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, - "Can't create directory\n\"%s\"\nfor color files: %s.", - pf_dir_path, strerror(errno)); - g_free(pf_dir_path); - return FALSE; - } - path = get_persconffile_path("colorfilters", TRUE); if (!deletefile(path)) { g_free(path); |