X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fglsnake.c;h=1d8ef965a10a73c398d5125e300d8ebd0d5cec13;hp=2616ad273be4ad16d73e885739f19aa33f687ea2;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/glsnake.c b/hacks/glx/glsnake.c index 2616ad27..1d8ef965 100644 --- a/hacks/glx/glsnake.c +++ b/hacks/glx/glsnake.c @@ -1461,13 +1461,7 @@ ModeInfo * mi struct glsnake_cfg * bp; /* set up the conf struct and glx contexts */ - if (!glc) { - glc = (struct glsnake_cfg *) calloc(MI_NUM_SCREENS(mi), sizeof(struct glsnake_cfg)); - if (!glc) { - fprintf(stderr, "%s: out of memory\n", progname); - exit(1); - } - } + MI_INIT(mi, glc, NULL); bp = &glc[MI_SCREEN(mi)]; if ((bp->glx_context = init_GL(mi)) != NULL) {