lesser changes
This commit is contained in:
parent
0943a8d46c
commit
877fe44720
|
@ -54,6 +54,14 @@ int cclt_optimize(char* input_file, char* output_file) {
|
||||||
//We don't need the input file anymore
|
//We don't need the input file anymore
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
|
//Create the output path if does not exists
|
||||||
|
if (mkdir(pars.output_folder, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) == -1) {
|
||||||
|
if (errno != EEXIST) {
|
||||||
|
perror("mkdir");
|
||||||
|
exit(-5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Open the output one instead
|
//Open the output one instead
|
||||||
fp = fopen(output_file, "w+");
|
fp = fopen(output_file, "w+");
|
||||||
//Check for errors
|
//Check for errors
|
||||||
|
|
Loading…
Reference in New Issue