Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Feb 27, 2022
1 parent 6153d7e commit 03a6803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ int fs_fopen(FILE **fp, const char *file, const char *mode)
fd = open(file, O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR);
if (fd == -1)
return errno;
else
(void)close(fd);

(void)close(fd);

fopen:
pfile = fopen(file, mode);
Expand Down

0 comments on commit 03a6803

Please sign in to comment.