projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver]
/
hacks
/
glx
/
menger.c
diff --git
a/hacks/glx/menger.c
b/hacks/glx/menger.c
index e26e2d31de4afe182d9ac34861c034a7c802f0c0..c5108a28d93c4725dc618e9127f0875d52a042fc 100644
(file)
--- a/
hacks/glx/menger.c
+++ b/
hacks/glx/menger.c
@@
-401,14
+401,7
@@
init_sponge (ModeInfo *mi)
sponge_configuration *sp;
int wire = MI_IS_WIREFRAME(mi);
sponge_configuration *sp;
int wire = MI_IS_WIREFRAME(mi);
- if (!sps) {
- sps = (sponge_configuration *)
- calloc (MI_NUM_SCREENS(mi), sizeof (sponge_configuration));
- if (!sps) {
- fprintf(stderr, "%s: out of memory\n", progname);
- exit(1);
- }
- }
+ MI_INIT (mi, sps, NULL);
sp = &sps[MI_SCREEN(mi)];
sp = &sps[MI_SCREEN(mi)];