Skip to content

Commit

Permalink
Issue #161: Don't fclose a FILE that is NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccxvii committed May 17, 2022
1 parent 160ae29 commit 910acc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pp.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void js_ppfile(js_State *J, const char *filename, int minify)

if (js_try(J)) {
js_free(J, s);
fclose(f);
if (f) fclose(f);
js_throw(J);
}

Expand Down

0 comments on commit 910acc8

Please sign in to comment.