Re: [PATCH v2] libfdisk: fix uninitialized fdisk_labelitem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 26, 2016 at 05:04:30PM +0200, Ruediger Meier wrote:
>  libfdisk/src/label.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied.

> diff --git a/libfdisk/src/label.c b/libfdisk/src/label.c
> index 5cbbe42..0e83fdf 100644
> --- a/libfdisk/src/label.c
> +++ b/libfdisk/src/label.c
> @@ -416,7 +416,7 @@ int fdisk_locate_disklabel(struct fdisk_context *cxt, int n, const char **name,
>   */
>  int fdisk_get_disklabel_id(struct fdisk_context *cxt, char **id)
>  {
> -	struct fdisk_labelitem item;
> +	struct fdisk_labelitem item = {0};

I have added macro rather than {0}.

THANKS! :-)

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux