X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fphotopile.c;h=0f6312febf6a96b74a288a0b39f4dd5012e9e80f;hp=847b3b2926dd149b697e23c4ec16bf35306ccbcf;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/glx/photopile.c b/hacks/glx/photopile.c index 847b3b29..0f6312fe 100644 --- a/hacks/glx/photopile.c +++ b/hacks/glx/photopile.c @@ -480,11 +480,7 @@ init_photopile (ModeInfo *mi) photopile_state *ss; int wire = MI_IS_WIREFRAME(mi); - if (sss == NULL) { - if ((sss = (photopile_state *) - calloc (MI_NUM_SCREENS(mi), sizeof(photopile_state))) == NULL) - return; - } + MI_INIT (mi, sss, NULL); ss = &sss[screen]; ss->mi = mi;