summaryrefslogtreecommitdiff
path: root/tests/memory.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2008-04-06 21:14:07 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2008-04-06 21:14:07 +0000
commit9096254e723f549b6d6491d5eddd08c05bbd8ebd (patch)
treedbe7cff2aa90259a59b14818d0113202a6d34c01 /tests/memory.c
parente4f927434f16216f1497c6aa11cc4eee2e47ea5c (diff)
downloadmpfr-9096254e723f549b6d6491d5eddd08c05bbd8ebd.tar.gz
some other changes suggested by Patrick Pelissier for 16-bit portability
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5348 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/memory.c')
-rw-r--r--tests/memory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/memory.c b/tests/memory.c
index 41be9123f..62ec7373b 100644
--- a/tests/memory.c
+++ b/tests/memory.c
@@ -44,7 +44,7 @@ struct header {
struct header *next;
};
-static struct header *tests_memory_list = NULL;
+static struct header *tests_memory_list;
/* Return a pointer to a pointer to the found block (so it can be updated
when unlinking). */
@@ -169,6 +169,7 @@ tests_free (void *ptr, size_t size)
void
tests_memory_start (void)
{
+ tests_memory_list = NULL;
mp_set_memory_functions (tests_allocate, tests_reallocate, tests_free);
}