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
/
sphere.c
diff --git
a/hacks/sphere.c
b/hacks/sphere.c
index 468a648d07a8f87ec3eb3618f9f870202b6627b8..edeaa8f7597b8df6d2f4eb7090dcd700604e80f6 100644
(file)
--- a/
hacks/sphere.c
+++ b/
hacks/sphere.c
@@
-115,11
+115,7
@@
init_sphere(ModeInfo * mi)
{
spherestruct *sp;
- if (spheres == NULL) {
- if ((spheres = (spherestruct *) calloc(MI_NUM_SCREENS(mi),
- sizeof (spherestruct))) == NULL)
- return;
- }
+ MI_INIT (mi, spheres, 0);
sp = &spheres[MI_SCREEN(mi)];
if (sp->points != NULL) {