X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fintermomentary.c;h=753aba5a7edc1a4f54959a72f47ceff6bd2ea8ca;hp=7ad335e768f287c54ff6d09e6a99100650a1ab64;hb=3f438031d610c7e15fd33876a879b97e290e05fb;hpb=447db08c956099b3b183886729108bf5b364c4b8 diff --git a/hacks/intermomentary.c b/hacks/intermomentary.c index 7ad335e7..753aba5a 100644 --- a/hacks/intermomentary.c +++ b/hacks/intermomentary.c @@ -30,6 +30,7 @@ * implied warranty. */ +#include #include "screenhack.h" #include #include @@ -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;