From ea9d1100362fd0e02923242f9c00ad6a2435658a Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 20 Feb 2004 15:10:49 +0000 Subject: [PATCH] Fix from Richard Harke for 64 bit systems. The reftag was left 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/nasal/misc.c b/simgear/nasal/misc.c index 73bd19d2..acdca6a3 100644 --- a/simgear/nasal/misc.c +++ b/simgear/nasal/misc.c @@ -135,6 +135,7 @@ naRef naNil() naRef naNum(double num) { naRef r; + r.ref.reftag = ~NASAL_REFTAG; r.num = num; return r; } -- 2.39.5