[Bf-blender-cvs] [41357d556f4] master: Fix broken logic in Windows directory query function
Julian Eisel
noreply at git.blender.org
Tue Aug 3 19:38:42 CEST 2021
Commit: 41357d556f4e3b286ab4ecfaeb990cc40bf08333
Author: Julian Eisel
Date: Tue Aug 3 19:37:34 2021 +0200
Branches: master
https://developer.blender.org/rB41357d556f4e3b286ab4ecfaeb990cc40bf08333
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 19b925535e2..47bb2f0e8dd 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