summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-04-03 12:47:25 +0000
committerrodri <rgl@antares-labs.eu>2024-04-03 12:47:25 +0000
commit0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed (patch)
treed8e69e2a4227966a927866b5f767585327312a80
parent4d711e22d597a42e1478e2f3c2d3c23312520309 (diff)
downloadlibgraphics-0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed.tar.gz
libgraphics-0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed.tar.bz2
libgraphics-0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed.zip
scene: fix uninitialized nents field.
-rw-r--r--scene.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene.c b/scene.c
index 4427835..2d74451 100644
--- a/scene.c
+++ b/scene.c
@@ -160,6 +160,7 @@ newscene(char *name)
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;
}