From a571c9922837eae4224632b5612f61e6290c63eb Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 5 May 2011 20:04:44 +0000 Subject: [PATCH] don't require a ptr unless size > 0 git-svn-id: http://skia.googlecode.com/svn/trunk@1259 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkReader32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/SkReader32.h b/include/core/SkReader32.h index 598723c..03a34c7 100644 --- a/include/core/SkReader32.h +++ b/include/core/SkReader32.h @@ -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); -- 2.7.4