From dfc4b1564fd2783a2ac5772a822334d804145a91 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sun, 29 Apr 2012 00:17:38 +0200 Subject: [PATCH] Nasal is C code, not C++ --- 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 1c3a6195..dae0bfe4 100644 --- a/simgear/nasal/misc.c +++ b/simgear/nasal/misc.c @@ -121,11 +121,12 @@ naRef naNewFunc(struct Context* c, naRef code) naRef naNewGhost(naContext c, naGhostType* type, void* ptr) { + naRef ghost; // ensure 'simple' ghost users don't see garbage for these fields type->get_member = 0; type->set_member = 0; - naRef ghost = naNew(c, T_GHOST); + ghost = naNew(c, T_GHOST); PTR(ghost).ghost->gtype = type; PTR(ghost).ghost->ptr = ptr; return ghost; -- 2.39.5