summaryrefslogtreecommitdiffstats
path: root/skull.c
diff options
context:
space:
mode:
Diffstat (limited to 'skull.c')
-rw-r--r--skull.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/skull.c b/skull.c
index 5c44f20..4c66833 100644
--- a/skull.c
+++ b/skull.c
@@ -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;