zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit a0f5fe2d7357febd8688209870fddc3507b1a6a7
parent 4b26b6456e011740f4efb2c10ff6f8c46395c622
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Thu, 16 Jun 2022 17:30:22 -0400

Middleware: Fix directory search comparison

Bug spotted by Andreas Schwab on gcc's bugzilla
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105997

Diffstat:
Msrc/Misc/MiddleWare.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Misc/MiddleWare.cpp b/src/Misc/MiddleWare.cpp @@ -1151,7 +1151,7 @@ static std::vector<std::string> getFiles(const char *folder, bool finddir) while((fn = readdir(dir))) { #ifndef WIN32 - bool is_dir = fn->d_type & DT_DIR; + bool is_dir = fn->d_type == DT_DIR; //it could still be a symbolic link if(!is_dir) { string path = string(folder) + "/" + fn->d_name;