From cdddb1e4bc3230dc8c0bc522c613e709d0afbdff Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 4 Dec 2007 21:21:10 +0000 Subject: Minor update to Bu::FString, it now always returns a valid C style string when asked for the string, no null pointers anymore. --- src/fstring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fstring.h b/src/fstring.h index 82e8b34..155d6af 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -353,7 +353,7 @@ namespace Bu chr *getStr() { if( pFirst == NULL ) - return NULL; + return (chr *)""; flatten(); pFirst->pData[nLength] = (chr)0; @@ -367,7 +367,7 @@ namespace Bu const chr *getStr() const { if( pFirst == NULL ) - return NULL; + return (chr *)""; flatten(); pFirst->pData[nLength] = (chr)0; -- cgit v1.2.3