]> git.imager.perl.org - imager.git/blobdiff - color.c
prevent an unsigned overflow in FT1 has_chars() implementation
[imager.git] / color.c
diff --git a/color.c b/color.c
index 10376a35faa2f26a58bae0530d646d8a0e0bc881..634a6c85c06e9a3d7f3869ca3af653705f75834f 100644 (file)
--- a/color.c
+++ b/color.c
@@ -16,6 +16,9 @@ color.c - color manipulation functions
 
 A collection of utility functions for converting between color spaces.
 
+=over
+
+=cut
 */
 
 #define EPSILON (1e-8)
@@ -33,7 +36,7 @@ Each value is scaled into the range 0 to 1.0.
 =cut
 */
 void i_rgb_to_hsvf(i_fcolor *color) {
-  double h, s, v;
+  double h = 0, s, v;
   double temp;
   double Cr, Cg, Cb;
 
@@ -74,7 +77,7 @@ Each value is scaled into the range 0 to 255.
 =cut
 */
 void i_rgb_to_hsv(i_color *color) {
-  double h, s, v;
+  double h = 0, s, v;
   double temp;
   double Cr, Cg, Cb;