summaryrefslogtreecommitdiffstats
path: root/qtools/qcstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qcstring.h')
-rw-r--r--qtools/qcstring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qtools/qcstring.h b/qtools/qcstring.h
index 8df3bfd..ef1189a 100644
--- a/qtools/qcstring.h
+++ b/qtools/qcstring.h
@@ -295,6 +295,7 @@ inline void QCString::duplicate( const char *str)
inline QCString &QCString::duplicate( const char *str, int)
{
+ if (m_data==str) return *this;
if (m_data) free(m_data);
duplicate(str);
return *this;