X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fsphere.c;h=edeaa8f7597b8df6d2f4eb7090dcd700604e80f6;hp=468a648d07a8f87ec3eb3618f9f870202b6627b8;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/sphere.c b/hacks/sphere.c index 468a648d..edeaa8f7 100644 --- a/hacks/sphere.c +++ b/hacks/sphere.c @@ -115,11 +115,7 @@ init_sphere(ModeInfo * mi) { spherestruct *sp; - if (spheres == NULL) { - if ((spheres = (spherestruct *) calloc(MI_NUM_SCREENS(mi), - sizeof (spherestruct))) == NULL) - return; - } + MI_INIT (mi, spheres, 0); sp = &spheres[MI_SCREEN(mi)]; if (sp->points != NULL) {