summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/mandoc/man_action.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_action.c b/usr.bin/mandoc/man_action.c
index 6a10bc7d9fe..7b72907e6c5 100644
--- a/usr.bin/mandoc/man_action.c
+++ b/usr.bin/mandoc/man_action.c
@@ -1,4 +1,4 @@
-/* $Id: man_action.c,v 1.21 2010/05/24 12:38:08 schwarze Exp $ */
+/* $Id: man_action.c,v 1.22 2010/05/24 13:42:58 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -259,6 +259,9 @@ post_UC(struct man *m)
p = bsd_versions[0];
}
+ if (m->meta.source)
+ free(m->meta.source);
+
m->meta.source = mandoc_strdup(p);
return(1);