summaryrefslogtreecommitdiff
path: root/src/util/Table.c
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-03-21 16:41:14 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-03-21 16:41:14 +0000
commit088ddf2435e2abae2ad7083ce6047a3b83fe3a05 (patch)
tree9ead53215f0979cce4e7ae40468413305ac6ed2c /src/util/Table.c
parent76e64d710750d4bba808a4fb5ea36ab3d8a5d00d (diff)
Declare variables at the beginning of a function block.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4017 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/Table.c')
-rw-r--r--src/util/Table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/Table.c b/src/util/Table.c
index 932b0834..d9b9df78 100644
--- a/src/util/Table.c
+++ b/src/util/Table.c
@@ -5198,12 +5198,12 @@ static
free(tep);
return UTIL_ERROR_BAD_INPUT; /* unknown type_code */
}
+ {
const size_t sizeof_value = N_elements * element_size;
#ifdef UTIL_TABLE_DEBUG2
printf(" allocating new buffer of size sizeof_value=%d bytes\n",
(int) sizeof_value);
#endif
- {
void *const buffer = malloc(sizeof_value);
/*
* A 0-sized array is (or should be) legal for the table routines.