X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fspheremonics.c;h=658b6e456022f12b38d8c6c3eefc6f0ff05b9537;hp=70b7ff6eb19486861c214e72f6057bb83facbd28;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/spheremonics.c b/hacks/glx/spheremonics.c index 70b7ff6e..658b6e45 100644 --- a/hacks/glx/spheremonics.c +++ b/hacks/glx/spheremonics.c @@ -695,14 +695,7 @@ init_spheremonics (ModeInfo *mi) { spheremonics_configuration *cc; - if (!ccs) { - ccs = (spheremonics_configuration *) - calloc (MI_NUM_SCREENS(mi), sizeof (spheremonics_configuration)); - if (!ccs) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, ccs, NULL); cc = &ccs[MI_SCREEN(mi)];