don't require a ptr unless size > 0

git-svn-id: http://skia.googlecode.com/svn/trunk@1259 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-05-05 20:04:44 +00:00
parent 205ddd7452
commit a571c99228

View File

@ -90,7 +90,7 @@ public:
}
void read(void* dst, size_t size) {
SkASSERT(dst != NULL);
SkASSERT(0 == size || dst != NULL);
SkASSERT(ptr_align_4(fCurr));
memcpy(dst, fCurr, size);
fCurr += SkAlign4(size);