Re: [PATCH] Manage.c: fix make everything compilation error

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

 



On Mon, 13 Aug 2012 11:56:19 +0200 Lukasz Dorau <lukasz.dorau@xxxxxxxxx>
wrote:

> This patch fixes the following make everything compilation error:
> Manage.c: In function ‘Manage_add’:
> Manage.c:538: error: ‘dev_st’ may be used uninitialized in this function
> make: *** [mdadm.Os] Error 1
> 
> Signed-off-by: Lukasz Dorau <lukasz.dorau@xxxxxxxxx>
> ---
>  Manage.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Manage.c b/Manage.c
> index d5fc974..f83af65 100644
> --- a/Manage.c
> +++ b/Manage.c
> @@ -535,7 +535,7 @@ int Manage_add(int fd, int tfd, struct mddev_dev *dv,
>  	       char *update, unsigned long rdev, unsigned long long array_size)
>  {
>  	unsigned long long ldsize;
> -	struct supertype *dev_st;
> +	struct supertype *dev_st = NULL;
>  	int j;
>  	mdu_disk_info_t disc;
>  

applied, thanks.

NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux