From 21658881789f53d781fc7ce85c5da578abc6c413 Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Fri, 17 Feb 2012 09:39:35 +0100 Subject: [PATCH] move variable declaration to top of function MSVC chokes on this as it's not according to C89. Signed-off-by: Heiko Hund Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer.c b/buffer.c index 6800e6e42..391085b9a 100644 --- a/buffer.c +++ b/buffer.c @@ -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 -- 2.47.2