aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-26 13:45:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-26 13:45:49 +0000
commit84e7a1da762680fa2919e438e354384ab7e18fc4 (patch)
tree6267d508238e72bbc8c18bd6031a49c6b316db7e /mdoc_action.c
parentc110d065f589159f350134b61bc102bf2e2bda29 (diff)
downloadmandoc-84e7a1da762680fa2919e438e354384ab7e18fc4.tar.gz
mandoc-84e7a1da762680fa2919e438e354384ab7e18fc4.tar.zst
mandoc-84e7a1da762680fa2919e438e354384ab7e18fc4.zip
Note that `Dd' can be empty. This found following a thread on discuss@
started by Sascha Wildner, 07/25/2010 06:30 AM.
Diffstat (limited to 'mdoc_action.c')
-rw-r--r--mdoc_action.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index a4eb532c..928615ab 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_action.c,v 1.76 2010/07/13 23:53:20 schwarze Exp $ */
+/* $Id: mdoc_action.c,v 1.77 2010/07/26 13:45:49 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -904,6 +904,11 @@ post_dd(POST_ARGS)
{
char buf[DATESIZ];
+ if (NULL == n->child) {
+ m->meta.date = time(NULL);
+ return(post_prol(m, n));
+ }
+
if ( ! concat(m, buf, n->child, DATESIZ))
return(0);