diff options
Diffstat (limited to 'Source/WebCore/platform/text/LineEnding.cpp')
-rw-r--r-- | Source/WebCore/platform/text/LineEnding.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/text/LineEnding.cpp b/Source/WebCore/platform/text/LineEnding.cpp index ff5707988..243e08962 100644 --- a/Source/WebCore/platform/text/LineEnding.cpp +++ b/Source/WebCore/platform/text/LineEnding.cpp @@ -96,6 +96,8 @@ private: void internalNormalizeLineEndingsToCRLF(const CString& from, OutputBuffer& buffer) { + if (!from.length()) + return; // Compute the new length. size_t newLen = 0; const char* p = from.data(); |