diff --git a/.gitignore b/.gitignore index 862ad24e..3454a4b0 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ /mingw64.zip /mingw64-small.zip -jou_compiled *.dll *.exe diff --git a/src/output.c b/src/output.c index bf4ee7ba..375d9ebc 100644 --- a/src/output.c +++ b/src/output.c @@ -107,7 +107,7 @@ static void mkdir_exist_ok(const char *p) static void write_gitinore(const char *p) { char *filename = malloc_sprintf("%s/.gitignore", p); - if (access(filename, F_OK)) { + if (access(filename, F_OK) == 0) { free(filename); return; }