[Bf-blender-cvs] [e27d1d9bb66] master: Fix broken `listdir` code.

Bastien Montagne noreply at git.blender.org
Wed Jan 25 12:32:21 CET 2023


Commit: e27d1d9bb6628a190eb9eab5f7029ac0e87c8db8
Author: Bastien Montagne
Date:   Wed Jan 25 12:31:00 2023 +0100
Branches: master
https://developer.blender.org/rBe27d1d9bb6628a190eb9eab5f7029ac0e87c8db8

Fix broken `listdir` code.

Error in `bli_builddir` cahnges in B4815d0706fb5 commit.

===================================================================

M	source/blender/blenlib/intern/BLI_filelist.c

===================================================================

diff --git a/source/blender/blenlib/intern/BLI_filelist.c b/source/blender/blenlib/intern/BLI_filelist.c
index ae7f6f79a17..7dca60128d3 100644
--- a/source/blender/blenlib/intern/BLI_filelist.c
+++ b/source/blender/blenlib/intern/BLI_filelist.c
@@ -127,7 +127,7 @@ static void bli_builddir(struct BuildDirCtx *dir_ctx, const char *dirname)
       dirname_with_slash, dirname, sizeof(dirname_with_slash) - 1);
 
   if ((dirname_with_slash_len > 0) &&
-      (BLI_path_slash_is_native_compat(dirname_with_slash_len - 1) == false)) {
+      (BLI_path_slash_is_native_compat(dirname[dirname_with_slash_len - 1]) == false)) {
     dirname_with_slash[dirname_with_slash_len++] = SEP;
     dirname_with_slash[dirname_with_slash_len] = '\0';
   }



More information about the Bf-blender-cvs mailing list