Issue #161: Don't fclose a FILE that is NULL.

This commit is contained in:
Tor Andersson
2022-05-17 15:53:30 +02:00
parent 160ae29578
commit 910acc807c

2
pp.c
View File

@@ -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);
}