Compare commits

...

2 commits

Author SHA1 Message Date
6e9f0709b4 Update Changelog.md
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 20s
2024-11-12 17:26:33 +09:00
b056a8f99d Add missing NULL check in arg_parse.c
Previous implementation didn't crash because `closedir(...)` is lenient.
2024-11-12 17:25:52 +09:00
2 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,8 @@
Fix internal erronous buffer declaration. Fix internal erronous buffer declaration.
Fix internal missing NULL check.
## Version 1.2 ## Version 1.2
Add the `--generate-dir=<DIR>` option, which will generate all html into the Add the `--generate-dir=<DIR>` option, which will generate all html into the

View file

@ -184,7 +184,9 @@ Args parse_args(int32_t argc, char **argv) {
} else { } else {
printf("Directory \"%s\" exists.\n", args.generate_dir); printf("Directory \"%s\" exists.\n", args.generate_dir);
} }
if (d) {
closedir(d); closedir(d);
}
} else if (strcmp(argv[0], "--generate-enable-overwrite") == 0) { } else if (strcmp(argv[0], "--generate-enable-overwrite") == 0) {
args.flags |= 4; args.flags |= 4;
} else { } else {