X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fmoebiusgears.c;h=0716cdcb858dc566de96560b5272a19636adf6d0;hp=a65f5fcef2984740178c30e24b3e4962669c156b;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/moebiusgears.c b/hacks/glx/moebiusgears.c index a65f5fce..0716cdcb 100644 --- a/hacks/glx/moebiusgears.c +++ b/hacks/glx/moebiusgears.c @@ -236,14 +236,7 @@ init_mgears (ModeInfo *mi) mgears_configuration *bp; int wire = MI_IS_WIREFRAME(mi); - if (!bps) { - bps = (mgears_configuration *) - calloc (MI_NUM_SCREENS(mi), sizeof (mgears_configuration)); - if (!bps) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, bps, NULL); bp = &bps[MI_SCREEN(mi)];