Fwd: BUGFIX: avoid core dumps in kdelibs
David Faure
dfaure at klaralvdalens-datakonsult.se
Sat Jul 12 15:55:29 BST 2003
On Saturday 12 July 2003 16:36, Maks Orlovich wrote:
> + else if( strlen( name ) > 0 && name[ strlen( name ) - 1 ] == '#' )
Calling strlen twice isn't the fastest code :)
What about
+ else if( name[0] != '\0' && name[ strlen( name ) - 1 ] == '#' )
?
--
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
More information about the kde-core-devel
mailing list