Fix bug where path.exists? would always return #t
This commit is contained in:
parent
cc096b9886
commit
e2af92b934
|
@ -99,10 +99,7 @@ int os_path_exists(const char *path)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
if (stat(path, &st) == -1) {
|
return stat(path, &st) != -1;
|
||||||
return FL_F;
|
|
||||||
}
|
|
||||||
return FL_T;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void os_setenv(const char *name, const char *value)
|
void os_setenv(const char *name, const char *value)
|
||||||
|
|
Loading…
Reference in New Issue