From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / sphere.c
index 468a648d07a8f87ec3eb3618f9f870202b6627b8..edeaa8f7597b8df6d2f4eb7090dcd700604e80f6 100644 (file)
@@ -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) {