move variable declaration to top of function

MSVC chokes on this as it's not according to C89.

Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
This commit is contained in:
Heiko Hund 2012-02-17 09:39:35 +01:00 committed by David Sommerseth
parent 67fe36f888
commit 2165888178

View File

@ -321,9 +321,9 @@ gc_malloc (size_t size, bool clear, struct gc_arena *a)
#endif
{
void *ret;
struct gc_entry *e;
ASSERT (NULL != a);
struct gc_entry *e;
#ifdef DMALLOC
e = (struct gc_entry *) openvpn_dmalloc (file, line, size + sizeof (struct gc_entry));
#else