Tim Woodall ([EMAIL PROTECTED]) wrote:
> On Fri, 10 May 2002, Greg MATTHEWS wrote:
> 
> 
> This whole area of code needs looking at:
> 
>                                         int pid;
> 
>                                       fscanf(f, "%d", &pid);
> 
> If fscanf fails then pid will have an undefined value - which we then
> kill.
> 

I know we should assume nothing, but if the pid file exists, it contains
a pid value. so the fscanf should not fail, but we could test the returned
value which tells us how many conversions succeeded.

-- 
Edouard Gomez


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe

        

Reply via email to