From e3287beb03915aea7f2133147cb7b1d766daf079 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 9 Jul 2007 23:47:12 +0000 Subject: Fixed a bug in a new constructor. --- src/fstring.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/fstring.h') diff --git a/src/fstring.h b/src/fstring.h index be88ec0..00bb12c 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -75,8 +75,11 @@ namespace Bu pFirst( NULL ), pLast( NULL ) { - rSrc.flatten(); - append( rSrc.pFirst->pData, rSrc.nLength ); + if( rSrc.nLength > 0 ) + { + rSrc.flatten(); + append( rSrc.pFirst->pData, rSrc.nLength ); + } } FBasicString( const MyType &rSrc, long nLength ) : -- cgit v1.2.3