diff options
author | rodri <rgl@antares-labs.eu> | 2024-04-03 12:47:25 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-04-03 12:47:25 +0000 |
commit | 0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed (patch) | |
tree | d8e69e2a4227966a927866b5f767585327312a80 | |
parent | 4d711e22d597a42e1478e2f3c2d3c23312520309 (diff) | |
download | libgraphics-0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed.tar.gz libgraphics-0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed.tar.bz2 libgraphics-0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed.zip |
scene: fix uninitialized nents field.
-rw-r--r-- | scene.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |