aboutsummaryrefslogtreecommitdiffstats
path: root/epan/filesystem.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-03-23 14:52:39 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-03-23 14:52:39 +0000
commit714c8c52b9eae4da4e8eb039e7ae95602e03c486 (patch)
tree866c1591ed7e7d27914b34f84d635f2355fc62c6 /epan/filesystem.c
parentfc11b6289139fdaf7859b40d846e2b2bd6e0798e (diff)
Ensure we create the "Default" personal configuration files directory before
creating a new profile. This fixes a bug when trying to create a new profile from a newly installed wireshark with no saved preferences. svn path=/trunk/; revision=36290
Diffstat (limited to 'epan/filesystem.c')
-rw-r--r--epan/filesystem.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/filesystem.c b/epan/filesystem.c
index c7a5cbe3b5..d0a3b88fcb 100644
--- a/epan/filesystem.c
+++ b/epan/filesystem.c
@@ -1196,6 +1196,13 @@ create_persconffile_profile(const char *profilename, char **pf_dir_path_return)
if (profilename) {
/*
+ * Create the "Default" personal configuration files directory, if necessary.
+ */
+ if (create_persconffile_profile (NULL, &pf_dir_path_return) == -1) {
+ return -1;
+ }
+
+ /*
* Check if profiles directory exists.
* If not then create it.
*/