diff options
Diffstat (limited to 'qtools/qcstring.cpp')
-rw-r--r-- | qtools/qcstring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtools/qcstring.cpp b/qtools/qcstring.cpp index e0e53e4..c3aad40 100644 --- a/qtools/qcstring.cpp +++ b/qtools/qcstring.cpp @@ -466,7 +466,7 @@ QCString QCString::simplifyWhiteSpace() const QCString &QCString::insert( uint index, const char *s ) { - int len = qstrlen(s); + int len = s ? qstrlen(s) : 0; if ( len == 0 ) return *this; uint olen = length(); |