summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-31 06:10:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-31 06:10:57 +0000
commitfecec57074220c2494d1098ec3e1fa90362a1e44 (patch)
tree496a201f25ed00e58a64f0ead626620bb1c08a5e /mdoc_html.c
parent9b34de59b184407dc87af383dc2b149c837e3b8b (diff)
downloadmandoc-fecec57074220c2494d1098ec3e1fa90362a1e44.tar.gz
Using perror() instead of fprintf for failure from library functions.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 3d635df2..d79cb5d8 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1115,7 +1115,7 @@ mdoc_bl_pre(MDOC_ARGS)
ord = malloc(sizeof(struct ord));
if (NULL == ord) {
- fprintf(stderr, "memory exhausted\n");
+ perror(NULL);
exit(EXIT_FAILURE);
}
ord->cookie = n;