summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorleo2001-01-05 13:51:26 +0000
committerleo2001-01-05 13:51:26 +0000
commitea88de125813c0241539b86d7ba1131784c4719d (patch)
tree675c8020a6142d96702d6b8edcb5a2bf74e4d917 /common
parent03fe25e1bf9c5a866752e09976324adbcf7a5461 (diff)
Fixed initialization bug
git-svn-id: http://svn.leocad.org/trunk@206 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common')
-rw-r--r--common/str.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/str.h b/common/str.h
index 60c352f..cc6d474 100644
--- a/common/str.h
+++ b/common/str.h
@@ -8,9 +8,9 @@ class String
public:
String ();
String (const String& src)
- { *this = src; }
+ { m_pData = NULL; *this = src; }
String (const char* str)
- { *this = str; }
+ { m_pData = NULL; *this = str; }
~String ();
int GetLength () const