From: andy Date: Tue, 20 Sep 2005 21:38:08 +0000 (+0000) Subject: Oops, Frederic caught an inline declaration that had snuck into the code. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15d40fd64a57349903d5691825b7eb7fbd06215a;p=simgear.git Oops, Frederic caught an inline declaration that had snuck into the code. --- 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);