From 41357d556f4e3b286ab4ecfaeb990cc40bf08333 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Tue, 3 Aug 2021 19:37:34 +0200 Subject: Fix broken logic in Windows directory query function Mistake in a5bbdd6998ab --- source/blender/blenlib/intern/storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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; } -- cgit v1.2.3