diff --git a/src/test-ot-color.cc b/src/test-ot-color.cc index 5312554a5..2cb9b03b2 100644 --- a/src/test-ot-color.cc +++ b/src/test-ot-color.cc @@ -74,7 +74,8 @@ png_dump (hb_face_t *face, unsigned int face_index) strikes_count++; blob_length = new_blob_length; } - strikes[strikes_count - 1] = ppem; + if (strikes_count != 0) + strikes[strikes_count - 1] = ppem; hb_blob_destroy (blob); } /* can't report the biggest strike correctly, and, we can't do anything about it */