Skip to content

Commit

Permalink
Fixed openFile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
proh14 committed Dec 11, 2024
1 parent a481bfc commit fab1928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ void openFile(char *s) {
FILE *file = fopen(s, "r");
if (!file && errno != ENOENT) {
die("fopen");
} else if (errno == ENOENT) {
}
if (!file && errno == ENOENT) {

free(curbuf.filename);

Expand Down

0 comments on commit fab1928

Please sign in to comment.