Fwd: BUGFIX: avoid core dumps in kdelibs

Harri Porten harri at froglogic.com
Sat Jul 12 20:16:54 BST 2003


Dirk Mueller wrote:
> 
> On Sam, 12 Jul 2003, David Faure wrote:
> 
> > What about
> > +  else if( name[0] != '\0' && name[ strlen( name ) - 1 ] == '#' )
> 
> how about making it readable?
> 
>      else if ( *name && name[ strlen( name ) - 1 ] == '#' )

IMHO this version looks more confusing as it is very similar to if (
name && ... ).

Harri.




More information about the kde-core-devel mailing list