From aa4d4db13e647842ad2ad941aeed5bf8b60c4a08 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 11 Jul 2007 01:48:47 +0000 Subject: Fixed a horrifying FString bug. --- src/fstring.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fstring.h b/src/fstring.h index f52b6f1..72ac99d 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -676,7 +676,10 @@ namespace Bu void copyFrom( const FBasicString &rSrc ) { if( rSrc.pFirst == NULL ) + { + clear(); return; + } Chunk *pNew = newChunk( rSrc.nLength ); chr *pos = pNew->pData; -- cgit v1.2.3