diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-03-21 16:41:14 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-03-21 16:41:14 +0000 |
commit | 088ddf2435e2abae2ad7083ce6047a3b83fe3a05 (patch) | |
tree | 9ead53215f0979cce4e7ae40468413305ac6ed2c /src/util/Table.c | |
parent | 76e64d710750d4bba808a4fb5ea36ab3d8a5d00d (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.c | 2 |
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. |