Re: [PATCH 01/64] media: omap3isp: Extract struct group for memcpy() region

From: Dan Carpenter
Date: Fri Jul 30 2021 - 05:01:52 EST


On Fri, Jul 30, 2021 at 10:38:45AM +0200, David Sterba wrote:
> Then is explicit memset the only reliable way accross all compiler
> flavors and supported versions?
>

The = { } initializer works. It's only when you start partially
initializing the struct that it doesn't initialize holes.

regards,
dan carpenter