[Sumover-dev] [svn commit] r3863 - common/trunk/src
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Wed Sep 13 14:45:36 BST 2006
Author: piers
Date: Wed Sep 13 14:45:27 2006
New Revision: 3863
Modified:
common/trunk/src/util.c
Log:
Initialised blocks_alloced variable to zero - which lead to nasty crashes. This is a general problem on Windows - uninitialised variables are NOT set to zero.
Also the DEBUG_MEM functions slow down the windows version of RAT significantly - not quite sure why (another bug?).
Modified: common/trunk/src/util.c
==============================================================================
--- common/trunk/src/util.c (original)
+++ common/trunk/src/util.c Wed Sep 13 14:45:27 2006
@@ -54,7 +54,7 @@
#define MAX_INDEX SIZE_TO_INDEX(MAX_SIZE)
static block *blocks[MAX_INDEX];
-static int blocks_alloced;
+static int blocks_alloced=0;
#ifdef DEBUG_MEM
More information about the Sumover-dev
mailing list