Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 28 Mar 2002 19:45:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 28 Mar 2002 19:44:53 -0500 Received: from tmr-02.dsl.thebiz.net ([216.238.38.204]:12816 "EHLO gatekeeper.tmr.com") by vger.kernel.org with ESMTP id ; Thu, 28 Mar 2002 19:44:43 -0500 Date: Thu, 28 Mar 2002 19:42:03 -0500 (EST) From: Bill Davidsen To: Andrew Morton cc: lkml Subject: Re: [patch] ext2_fill_super breakage In-Reply-To: <3CA356AE.2E61F712@zip.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 Mar 2002, Andrew Morton wrote: > I'm not particularly fussed about this one, but I do prefer > the sleep-at-night safety of a blanket memset. Because > (and I think this is something on which you and I somewhat > differ) code should be written for the convenience of others, > not the original author. A nice memset will leave no doubt > in the reader's mind that all members of the structure have > been initialised. Definitely. It's easy to forget to initialize something when you reuse a struct. -- bill davidsen CTO, TMR Associates, Inc Doing interesting things with little computers since 1979. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/