[PDF] Fix font metric array initialization.

Review URL: https://codereview.appspot.com/5885055

git-svn-id: http://skia.googlecode.com/svn/trunk@3475 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
vandebo@chromium.org 2012-03-23 15:17:37 +00:00
parent 6db75fc2c3
commit c3a0d2e4c5

View File

@ -225,8 +225,7 @@ bool SkPDFDocument::appendPage(SkPDFDevice* pdfDevice) {
void SkPDFDocument::getCountOfFontTypes(
int counts[SkAdvancedTypefaceMetrics::kNotEmbeddable_Font + 1]) const {
memset(counts, 0,
sizeof(int)* SkAdvancedTypefaceMetrics::kNotEmbeddable_Font + 1);
sk_bzero(counts, sizeof(counts));
SkTDArray<SkFontID> seenFonts;
for (int pageNumber = 0; pageNumber < fPages.count(); pageNumber++) {