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
/
cubestack.c
diff --git
a/hacks/glx/cubestack.c
b/hacks/glx/cubestack.c
index 072bf9ca7dcee46aff016da8e226ca65fcf29516..ee630dedfc580162fc3cbf802cee53da012ad661 100644
(file)
--- a/
hacks/glx/cubestack.c
+++ b/
hacks/glx/cubestack.c
@@
-347,14
+347,7
@@
init_cube (ModeInfo *mi)
cube_configuration *bp;
int wire = MI_IS_WIREFRAME(mi);
cube_configuration *bp;
int wire = MI_IS_WIREFRAME(mi);
- if (!bps) {
- bps = (cube_configuration *)
- calloc (MI_NUM_SCREENS(mi), sizeof (cube_configuration));
- if (!bps) {
- fprintf(stderr, "%s: out of memory\n", progname);
- exit(1);
- }
- }
+ MI_INIT (mi, bps, NULL);
bp = &bps[MI_SCREEN(mi)];
bp = &bps[MI_SCREEN(mi)];