aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index ea7fb29..7a88ec4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -72,7 +72,6 @@ handle_file(const char *path)
if (dot && strcmp(dot, ".md") == 0) {
MMIOT *doc = mkd_string(buffer, size, 0);
template_write(base_template, NULL, out, doc, false);
- /* free(doc); */
} else if (strlen(buffer) != 0) {
list_t *content_headers = ingest(&buffer);
template_write(base_template, content_headers, out, buffer, false);
@@ -119,16 +118,15 @@ main(int argc, char **argv)
printf("HANDLING: %s\n", filepath);
handle_file(filepath);
free(filepath);
- }
- for (x = (char **) md_resources; *x != NULL; x++) {
- asprintf(&filepath, "%s.md", *x);
- handle_file(filepath);
- free(filepath);
+ return EXIT_SUCCESS;
}
- free(base_template->pre);
- free(base_template->post);
+ /* for (x = (char **) md_resources; *x != NULL; x++) { */
+ /* asprintf(&filepath, "%s.md", *x); */
+ /* handle_file(filepath); */
+ /* free(filepath); */
+ /* } */
return EXIT_SUCCESS;
}