summaryrefslogtreecommitdiffstats
path: root/mdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-02 00:10:37 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-02 00:10:37 +0000
commit0d055120de349c30f0ceb537d57f8694f67397da (patch)
tree6909226bceaa9d9affdfc9845b27a40c83ef76f3 /mdocml.c
parentfcccec27b02c05557ea3cad60051abb8ca5a2e62 (diff)
downloadmandoc-0d055120de349c30f0ceb537d57f8694f67397da.tar.gz
Improvements to the xml part.
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdocml.c b/mdocml.c
index 4f7eac9a..84ceec26 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -106,6 +106,9 @@ leave_io(const struct md_buf *out,
warn("%s", out->name);
c = 1;
}
+ if (1 == c && STDOUT_FILENO != out->fd)
+ if (-1 == unlink(out->name))
+ warn("%s", out->name);
return(c);
}