Ensure we create the "Default" personal configuration files directory before
[obnox/wireshark/wip.git] / epan / filesystem.c
index c7a5cbe3b5e4c285ac725d01b86504993ac7b8c5..d0a3b88fcb356de2c2867eacec881ddba84ba4bf 100644 (file)
@@ -1195,6 +1195,13 @@ create_persconffile_profile(const char *profilename, char **pf_dir_path_return)
        int ret;
 
        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.