On Tue, Jun 28, 2005 at 09:32:49AM -0700, Joe Buck wrote: > /* int a, b, c; */ > if (b > 0) { > a = b + c; > int count; > for (int i = c; i <= a; i++) > count++; > some_func(count); > }
I forgot to initialize count to 0, of course.
On Tue, Jun 28, 2005 at 09:32:49AM -0700, Joe Buck wrote: > /* int a, b, c; */ > if (b > 0) { > a = b + c; > int count; > for (int i = c; i <= a; i++) > count++; > some_func(count); > }
I forgot to initialize count to 0, of course.