Fix broken logic in Windows directory query function
Mistake in a5bbdd6998
This commit is contained in:
parent
f6665f506b
commit
a1b687c7a4
Notes:
blender-bot
2023-02-14 08:06:35 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue