From 15d40fd64a57349903d5691825b7eb7fbd06215a Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 20 Sep 2005 21:38:08 +0000 Subject: [PATCH] Oops, Frederic caught an inline declaration that had snuck into the code. --- simgear/nasal/misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/nasal/misc.c b/simgear/nasal/misc.c index 82066b89..f1bd6de9 100644 --- a/simgear/nasal/misc.c +++ b/simgear/nasal/misc.c @@ -15,8 +15,9 @@ void naTempSave(naContext c, naRef r) int i; if(!IS_OBJ(r)) return; if(c->ntemps >= c->tempsz) { + struct naObj** newtemps; c->tempsz *= 2; - struct naObj** newtemps = naAlloc(c->tempsz * sizeof(struct naObj*)); + newtemps = naAlloc(c->tempsz * sizeof(struct naObj*)); for(i=0; intemps; i++) newtemps[i] = c->temps[i]; naFree(c->temps); -- 2.39.5