diff options
author | Erik K <erikk@previousplan.org> | 2022-05-26 16:31:27 +0000 |
---|---|---|
committer | Erik K <erikk@previousplan.org> | 2022-05-26 16:31:27 +0000 |
commit | 61d75021c8a1180d2b591e70c783bd2eb21188bd (patch) | |
tree | e5401f7c66da4b41eb1bc7f01a8e98a38f8ceae8 /skull.c | |
parent | 9643e3cb444ee26088be4636ba2b753ac0166156 (diff) |
Diffstat (limited to 'skull.c')
-rw-r--r-- | skull.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -64,6 +64,8 @@ href=\"mailto:erikk@previousplan.org\">erikk@previousplan.org</a> \ snprintf(path, sizeof(path), "%s/%s", kcontentdir, doc[i]->filename); snprintf(outpath, sizeof(outpath), "%s/%s", kskullexport, doc[i]->filename); + if (!mkparentdirs(outpath)) + continue; if ((outf = fopen(outpath, "w")) == NULL) { fprintf(stderr, "%s: %s\n", outpath, strerror(errno)); continue; |