Re: [PATCH 4/4] include: add missing values to sysfs_cxt initializer definition

Karel Zak
2013-01-24T15:35:20Z

On Wed, Jan 09, 2013 at 07:36:56PM +0000, Sami Kerola wrote:
> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
> ---
> include/sysfs.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/sysfs.h b/include/sysfs.h
> index 4f9c46b..739f9de 100644
> --- a/include/sysfs.h
> +++ b/include/sysfs.h
> @@ -30,7 +30,7 @@ struct sysfs_cxt {
> unsigned int has_hctl : 1;
> };
>
> -#define UL_SYSFSCXT_EMPTY { 0, -1, NULL, NULL }
> +#define UL_SYSFSCXT_EMPTY { 0, -1, NULL, NULL, 0, 0, 0, 0, 0 }

Applied, but it's very probably unnecessary. All unspecified fields
should be zeroized according to the standard.