X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fcubestack.c;h=ee630dedfc580162fc3cbf802cee53da012ad661;hp=072bf9ca7dcee46aff016da8e226ca65fcf29516;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/cubestack.c b/hacks/glx/cubestack.c index 072bf9ca..ee630ded 100644 --- a/hacks/glx/cubestack.c +++ b/hacks/glx/cubestack.c @@ -347,14 +347,7 @@ init_cube (ModeInfo *mi) cube_configuration *bp; int wire = MI_IS_WIREFRAME(mi); - if (!bps) { - bps = (cube_configuration *) - calloc (MI_NUM_SCREENS(mi), sizeof (cube_configuration)); - if (!bps) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, bps, NULL); bp = &bps[MI_SCREEN(mi)];