[Bf-blender-cvs] [a1b687c7a4a] blender-v2.93-release: Fix broken logic in Windows directory query function
Julian Eisel
noreply at git.blender.org
Mon Aug 9 08:42:32 CEST 2021
Commit: a1b687c7a4aa79219a1907d89267bd4093fb953e
Author: Julian Eisel
Date: Tue Aug 3 19:37:34 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rBa1b687c7a4aa79219a1907d89267bd4093fb953e
Fix broken logic in Windows directory query function
Mistake in a5bbdd6998ab
===================================================================
M source/blender/blenlib/intern/storage.c
===================================================================
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index cb2634e6fda..fb1152ddabd 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -114,7 +114,7 @@ double BLI_dir_free_space(const char *dir)
tmp[0] = '\\';
tmp[1] = 0; /* Just a fail-safe. */
- if (ELEM(dir[0] == '/', '\\')) {
+ if (ELEM(dir[0], '/', '\\')) {
tmp[0] = '\\';
tmp[1] = 0;
}
More information about the Bf-blender-cvs
mailing list