]> git.imager.perl.org - imager.git/blobdiff - polygon.c
avoid an unneeded EXTEND() call when the FT2 has_chars() implementation returns 0.
[imager.git] / polygon.c
index 58ac8ec3b7a6e2f06e6dcdf7deb6adb81920a572..54923b47e96ee8ddd746c1788c0828d56e52f656 100644 (file)
--- a/polygon.c
+++ b/polygon.c
@@ -468,7 +468,7 @@ i_poly_poly_aa_low(i_img *im, int count, const i_polygon_t *polys,
 
   for (k = 0; k < count; ++k) {
     if (polys[k].count < 3) {
-      i_push_errorf(0, "polygons must have at least 3 points");
+      i_push_error(0, "polygons must have at least 3 points");
       return 0;
     }
   }
@@ -572,7 +572,7 @@ i_poly_poly_aa_low(i_img *im, int count, const i_polygon_t *polys,
        k = 0;
        while (k < clc) {
          p_line *left = lset + tllist[k++].n;
-         p_line *current;
+         p_line *current = NULL;
          int acc = left->dir;
 
          while (k < clc && acc) {