]> git.mxchange.org Git - simgear.git/commitdiff
Fix from Richard Harke for 64 bit systems. The reftag was left
authorandy <andy>
Fri, 20 Feb 2004 15:10:49 +0000 (15:10 +0000)
committerandy <andy>
Fri, 20 Feb 2004 15:10:49 +0000 (15:10 +0000)
uninitialized by naNum().  If it happened to be constructing it on the
stack in a location previously occupied by a real reference, it would
generate a corrupt naRef.

simgear/nasal/misc.c

index 73bd19d2b01129c8afa9d074bbdecbd6d80d6ab2..acdca6a3e149a760c76f2b10988afabfc4d861a3 100644 (file)
@@ -135,6 +135,7 @@ naRef naNil()
 naRef naNum(double num)
 {
     naRef r;
+    r.ref.reftag = ~NASAL_REFTAG;
     r.num = num;
     return r;
 }