diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-10 07:09:42 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-10 07:13:07 +0300 |
commit | ef3c49de8186278d57d0319ab4bf4fe923b7016d (patch) | |
tree | 0ab65b060c37704e067c4a2eb7bf4489e9d8792d /source/blender/blenkernel/intern/appdir.c | |
parent | 099ae99589bf21e03bbf380613438114953dd8ea (diff) |
Cleanup: early return when directories can't be found
Also reduce variable scope and assert when an invalid argument
is passed to BKE_appdir_folder_id_create.
Diffstat (limited to 'source/blender/blenkernel/intern/appdir.c')
-rw-r--r-- | source/blender/blenkernel/intern/appdir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c index f4dec0aecd7..24e4305d916 100644 --- a/source/blender/blenkernel/intern/appdir.c +++ b/source/blender/blenkernel/intern/appdir.c @@ -734,6 +734,7 @@ const char *BKE_appdir_folder_id_create(const int folder_id, const char *subfold BLENDER_USER_CONFIG, BLENDER_USER_SCRIPTS, BLENDER_USER_AUTOSAVE)) { + BLI_assert_unreachable(); return NULL; } |