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