Skip to content

Commit

Permalink
my fault
Browse files Browse the repository at this point in the history
  • Loading branch information
littlewhitecloud authored Dec 9, 2023
1 parent dbbea31 commit 8b80382
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ static void mkdir_exist_ok(const char *p)
static void write_gitinore(const char *p)
{
char *filename = malloc_sprintf("%s/.gitinore", p);
if (access(filename, F_OK))
if (access(filename, F_OK)) {
free(filename);
return;
}
FILE *gitinore = fopen(filename, "w");
fprintf(gitinore, "*");

Expand Down

0 comments on commit 8b80382

Please sign in to comment.