Fix bug where path.exists? would always return #t

This commit is contained in:
Lassi Kortela 2019-09-02 19:37:46 +03:00
parent cc096b9886
commit e2af92b934
1 changed files with 1 additions and 4 deletions

View File

@ -99,10 +99,7 @@ int os_path_exists(const char *path)
{
struct stat st;
if (stat(path, &st) == -1) {
return FL_F;
}
return FL_T;
return stat(path, &st) != -1;
}
void os_setenv(const char *name, const char *value)