]> git.mxchange.org Git - simgear.git/blobdiff - simgear/nasal/misc.c
The previous update (and, embarassingly, the "nasal 1.0" release I
[simgear.git] / simgear / nasal / misc.c
index 82066b89aeeb40433f22900af978405e92fb5e7d..f1bd6de9b1b331eab4d1e35266aec0af5b596991 100644 (file)
@@ -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; i<c->ntemps; i++)
             newtemps[i] = c->temps[i];
         naFree(c->temps);