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
/
moebiusgears.c
diff --git
a/hacks/glx/moebiusgears.c
b/hacks/glx/moebiusgears.c
index a65f5fcef2984740178c30e24b3e4962669c156b..0716cdcb858dc566de96560b5272a19636adf6d0 100644
(file)
--- a/
hacks/glx/moebiusgears.c
+++ b/
hacks/glx/moebiusgears.c
@@
-236,14
+236,7
@@
init_mgears (ModeInfo *mi)
mgears_configuration *bp;
int wire = MI_IS_WIREFRAME(mi);
mgears_configuration *bp;
int wire = MI_IS_WIREFRAME(mi);
- if (!bps) {
- bps = (mgears_configuration *)
- calloc (MI_NUM_SCREENS(mi), sizeof (mgears_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)];