summaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-04-03 11:08:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-04-03 11:08:39 +0000
commit65c1b92bb836a60e83ebd2bd3129acffcaa02420 (patch)
tree2d2b87559bb2e2eaae4562e09161a960b1885cb2 /man.c
parent0f15da4617d2cda375129998838b6bfd613901a4 (diff)
downloadmandoc-65c1b92bb836a60e83ebd2bd3129acffcaa02420.tar.gz
mandoc-65c1b92bb836a60e83ebd2bd3129acffcaa02420.tar.zst
mandoc-65c1b92bb836a60e83ebd2bd3129acffcaa02420.zip
Proper resetting of memory.
Array boundary fixed (-W).
Diffstat (limited to 'man.c')
-rw-r--r--man.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/man.c b/man.c
index 99af2012..e99353ed 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.14 2009/04/02 06:51:44 kristaps Exp $ */
+/* $Id: man.c,v 1.15 2009/04/03 11:08:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -62,12 +62,14 @@ man_meta(const struct man *m)
}
-void
+int
man_reset(struct man *man)
{
man_free1(man);
man_alloc1(man);
+ /* TODO */
+ return(1);
}