From: Tom G. <to...@li...> - 2001-08-12 14:36:07
|
* Peter Kjellerstedt (pet...@ax...) wrote: > > - *tmp = '\0'; > > + *tmp++ = '\0'; > > + if(!tmp) > > When will tmp ever be NULL here? strrchr() is not likely to return -1... > You didn't mean if(!*tmp) per chance? Yes I did, sorry, I got 2 hrs sleep last night :) Tom. -- .^. .-------------------------------------------------------. /V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk | /( )\ | Open Source/UNIX consultant | to...@li... | ^^-^^ `-------------------------------------------------------' |