Subject: Re: CVS commit: src/sys/ufs/lfs
To: None <source-changes@netbsd.org>
From: Jed Davis <jdev@panix.com>
List: source-changes
Date: 03/20/2006 19:23:55
Tyler Retzlaff <rtr@omicron-persei-8.net> writes:

> YAMAMOTO Takashi wrote:
>
>>what i don't understand here is, why you think NULL initialization is
>>better wrt future bugs.
>>
> Would a dereference of the NULL ptr not cause immediate failure?  As
> opposed to dereference of garbage ptr which may or may not fail
> immediately?

If a value is potentially used uninitialized, GCC should be able to
catch that, given the right flags.  Are we not doing that here?

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))