From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 12 20:10:44 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53CC216A4D2 for ; Sun, 12 Sep 2004 20:10:44 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 485FC43D2D for ; Sun, 12 Sep 2004 20:10:44 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i8CKAiqs028194 for ; Sun, 12 Sep 2004 20:10:44 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8CKAim6028193; Sun, 12 Sep 2004 20:10:44 GMT (envelope-from gnats) Date: Sun, 12 Sep 2004 20:10:44 GMT Message-Id: <200409122010.i8CKAim6028193@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Giorgos Keramidas Subject: Re: bin/71630: [PATCH] cleanup of the usr.sbin/pppd code X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Giorgos Keramidas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2004 20:10:44 -0000 The following reply was made to PR bin/71630; it has been noted by GNATS. From: Giorgos Keramidas To: Dan Lukes Cc: bug-followup@freebsd.org Subject: Re: bin/71630: [PATCH] cleanup of the usr.sbin/pppd code Date: Sun, 12 Sep 2004 22:42:06 +0300 On 2004-09-12 04:38, Dan Lukes wrote: > - FILE *iffile; > + FILE *iffile = iffile; /* to avoid "may be used unitialized" warning */ Nope. NULL is the proper initialization value for (FILE *) objects. This way any bugs that might exist further down will be exposed by a dereference of a NULL pointer which everyone will notice. Hiding the bugs behind an even more bogus initialization is not a good thing. The rest of this looks fine, IMHO.