Index: Source/WebCore/platform/SharedBuffer.cpp |
=================================================================== |
--- Source/WebCore/platform/SharedBuffer.cpp (revision 132675) |
+++ Source/WebCore/platform/SharedBuffer.cpp (working copy) |
@@ -147,6 +147,8 @@ |
void SharedBuffer::append(const char* data, unsigned length) |
{ |
ASSERT(!m_purgeableBuffer); |
+ if (!length) |
+ return; |
maybeTransferPlatformData(); |