Manage.c: fix make everything compilation error

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@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Lukasz Dorau 2012-08-13 11:56:19 +02:00 committed by NeilBrown
parent c3439f4c7b
commit 6d43efb59b
1 changed files with 1 additions and 1 deletions

View File

@ -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;