[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Stupid C code..



Hi Binand

 Thank you for the help..

 Really stupid mistake on my side, really sorry for wasting bandwidth..

 Bye
  Shridhar
On Tue, 2 May 2000, Binand Raj S. wrote:

> 
> Are you sure the condition for that while is correct? Because, if that is the
> case, then you have an infinite loop here. When *line is a null byte, the first
> condition evaluates to false, but the next one evaluates to true. If *line is
> not a null byte, the first itself will evaluate to true. So, in any case, the
> test in the while returns true, irrespective of *line's value.
> 
> It is this infinite loop that makes your code dump core.