lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 24 Feb 2012 10:01:47 -0600 From: Ben Myers <bpm@....com> To: santosh nayak <santoshprasadnayak@...il.com> Cc: elder@...nel.org, xfs-masters@....sgi.com, xfs@....sgi.com, linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org, Dan Carpenter <dan.carpenter@...cle.com> Bcc: Subject: Re: [PATCH] xfs: Use memset to initialize structure member. Reply-To: In-Reply-To: <20120224075354.GA3649@...nda> On Fri, Feb 24, 2012 at 10:53:54AM +0300, Dan Carpenter wrote: > On Fri, Feb 24, 2012 at 12:38:42PM +0530, santosh nayak wrote: > > From: Santosh Nayak <santoshprasadnayak@...il.com> > > > > Sparse is giving following warning: > > fs/xfs/xfs_bmap.c:4826:41: warning: Using plain integer as NULL pointer. > > > > You could just do: > struct xfs_bmalloca bma = {}; Santosh, this aggregate initializer seems cleaner than memset. Do you mind resending the patch with Dan's suggestion? Thanks for your contribution. ;) -Ben -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists