X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Frotor.c;h=293b273cb58bfbfc4b108c191d5c6cba5c8ec0dd;hp=1b3d5b39b51396a505cc96fb727c889ab10be454;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/rotor.c b/hacks/rotor.c index 1b3d5b39..293b273c 100644 --- a/hacks/rotor.c +++ b/hacks/rotor.c @@ -127,11 +127,7 @@ init_rotor (ModeInfo * mi) unsigned char wasiconified; rotorstruct *rp; - if (rotors == NULL) { - if ((rotors = (rotorstruct *) calloc(MI_NUM_SCREENS(mi), - sizeof (rotorstruct))) == NULL) - return; - } + MI_INIT (mi, rotors, 0); rp = &rotors[MI_SCREEN(mi)]; #ifdef HAVE_JWXYZ