Another valgrind uninitialized bytes complaint
This commit is contained in:
@@ -74,6 +74,7 @@ new_light_core(coordxy x, coordxy y, int range, int type, anything *id)
|
|||||||
|
|
||||||
ls = (light_source *) alloc(sizeof *ls);
|
ls = (light_source *) alloc(sizeof *ls);
|
||||||
|
|
||||||
|
(void) memset((genericptr_t) ls, 0, sizeof (light_source));
|
||||||
ls->next = gl.light_base;
|
ls->next = gl.light_base;
|
||||||
ls->x = x;
|
ls->x = x;
|
||||||
ls->y = y;
|
ls->y = y;
|
||||||
|
|||||||
Reference in New Issue
Block a user