X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fglknots.c;h=15c67dee56c5acd471eb31ef14cb0e42e78bb3ac;hp=8dd63728e8ee8650fb568ddef501e76b4a302314;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/glknots.c b/hacks/glx/glknots.c index 8dd63728..15c67dee 100644 --- a/hacks/glx/glknots.c +++ b/hacks/glx/glknots.c @@ -257,14 +257,7 @@ init_knot (ModeInfo *mi) knot_configuration *bp; int wire = MI_IS_WIREFRAME(mi); - if (!bps) { - bps = (knot_configuration *) - calloc (MI_NUM_SCREENS(mi), sizeof (knot_configuration)); - if (!bps) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT (mi, bps, NULL); bp = &bps[MI_SCREEN(mi)];