From 2120f5da908ec05f03c38dd86898d05fbc84157a Mon Sep 17 00:00:00 2001 From: Allanis Date: Sun, 16 Jun 2013 02:09:58 +0100 Subject: [PATCH] [Fix] Accidently used assignment operator rather than logical to check if a file exists. :/ --- src/lfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lfile.c b/src/lfile.c index b1da45a..0e039fc 100644 --- a/src/lfile.c +++ b/src/lfile.c @@ -120,7 +120,7 @@ char** lfile_readDir(int* lfiles, char* path) { #endif // What if we find nothing? - if((*lfiles) = 0) { + if((*lfiles) == 0) { free(files); files = NULL; }