From 52a5a9d9bd8d767bd76c02f20668e1c7d92e33f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Wed, 29 Apr 2020 22:38:41 +0200 Subject: setting up folder structure --- lib/jsmin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/jsmin.c') diff --git a/lib/jsmin.c b/lib/jsmin.c index f63e68f..402c6c9 100644 --- a/lib/jsmin.c +++ b/lib/jsmin.c @@ -32,7 +32,7 @@ is the option to read from a source file and output to the minified file. #include #include - +#include static int the_a; static int the_b; static int look_ahead = EOF; @@ -316,9 +316,11 @@ static void jsmin() { */ int minify_js(const char* source_js_filename, const char* minified_js_filename) { - minified_js_file = fopen(minified_js_filename, "w"); + minified_js_file = fopen_mkdir(minified_js_filename, "w"); source_js_file = fopen(source_js_filename, "r"); jsmin(); + fclose(minified_js_file); + fclose(source_js_file); return 0; } -- cgit v1.2.3