ref: 0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed
parent: 4d711e22d597a42e1478e2f3c2d3c23312520309
author: rodri <rgl@antares-labs.eu>
date: Wed Apr 3 08:47:25 EDT 2024
scene: fix uninitialized nents field.
--- a/scene.c
+++ b/scene.c
@@ -160,6 +160,7 @@
s = emalloc(sizeof *s);
s->name = name == nil? nil: strdup(name);
s->ents.prev = s->ents.next = &s->ents;
+ s->nents = 0;
s->addent = scene_addent;
return s;
}