fix warning for uninitialized count

git-svn-id: http://skia.googlecode.com/svn/trunk@14095 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2014-04-08 16:02:45 +00:00
parent efadb4b63c
commit 43d6d80b49

View File

@ -66,7 +66,8 @@ int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding enc
SkASSERT(text);
int count;
int count = 0; // fix uninitialized warning (even though the switch is complete!)
switch (encoding) {
case kUTF8_SkTextEncoding:
count = SkUTF8_CountUnichars((const char*)text, byteLength);