ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.22.tar.gz
[xscreensaver] / hacks / intermomentary.c
index 7ad335e768f287c54ff6d09e6a99100650a1ab64..753aba5a7edc1a4f54959a72f47ceff6bd2ea8ca 100644 (file)
@@ -30,6 +30,7 @@
  * implied warranty.
  */
 
+#include <math.h>
 #include "screenhack.h"
 #include <X11/Xutil.h>
 #include <stdio.h>
@@ -211,8 +212,8 @@ inline unsigned long trans_point(int x1, int y1, unsigned long myc, float a, str
         if (a >= 1.0) {
             ref_pixel(f, x1, y1) = myc;
         } else {
-            unsigned short int or, og, ob;
-            unsigned short int r, g, b;
+            unsigned short int or = 0, og = 0, ob = 0;
+            unsigned short int r = 0, g = 0, b = 0;
             unsigned short int nr, ng, nb;
             unsigned long c;