From 08226bc6b0147b69a1afb74d83c6a8821e93601b Mon Sep 17 00:00:00 2001 From: Filip Gawin <filip.gawin@zoho.com> Date: Mon, 29 Oct 2018 02:05:45 +0100 Subject: Simplify some statements --- Alc/helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/helpers.c') diff --git a/Alc/helpers.c b/Alc/helpers.c index d2cb6253..0d5087e6 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -842,7 +842,7 @@ static void DirectorySearch(const char *path, const char *ext, vector_al_string continue; len = strlen(dirent->d_name); - if(!(len > extlen)) + if(len <= extlen) continue; if(strcasecmp(dirent->d_name+len-extlen, ext) != 0) continue; -- cgit v1.2.3