Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-11-01 05:09:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-11-01 05:11:48 +0300
commita0633e2484f21c9f80842c10b46b3af98b54d25a (patch)
treeb19b840f0eb683a9cb371cc5b1f275056db05a03 /source/blender/blenlib/intern/winstuff.c
parentd4d38e8a34e59c8762034073b084ed3c5ee09af8 (diff)
Fix crash when "HOME" environment variable isn't defined
Accessing the default directory in the file selector would crash if HOME was undefined. Add BKE_appdir_folder_default_or_root which never returns NULL.
Diffstat (limited to 'source/blender/blenlib/intern/winstuff.c')
-rw-r--r--source/blender/blenlib/intern/winstuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/winstuff.c b/source/blender/blenlib/intern/winstuff.c
index 3001b25bc1e..11345fc7242 100644
--- a/source/blender/blenlib/intern/winstuff.c
+++ b/source/blender/blenlib/intern/winstuff.c
@@ -193,7 +193,7 @@ bool BLI_windows_register_blend_extension(const bool background)
return true;
}
-void BLI_windows_get_default_root_dir(char *root)
+void BLI_windows_get_default_root_dir(char root[4])
{
char str[MAX_PATH + 1];