X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fhypnowheel.c;h=4a8fe5e2a0c93183c923918aced8296f3569c1b5;hp=d92e147b0baf539c09a5b6d5b6ee9345e7ccc2c9;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/hypnowheel.c b/hacks/glx/hypnowheel.c index d92e147b..4a8fe5e2 100644 --- a/hacks/glx/hypnowheel.c +++ b/hacks/glx/hypnowheel.c @@ -169,14 +169,7 @@ init_hypnowheel (ModeInfo *mi) int wire = MI_IS_WIREFRAME(mi); int i; - if (!bps) { - bps = (hypnowheel_configuration *) - calloc (MI_NUM_SCREENS(mi), sizeof (hypnowheel_configuration)); - if (!bps) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, bps, NULL); bp = &bps[MI_SCREEN(mi)];