From 6d43efb59b16a53236a62f99beff415860aa66b2 Mon Sep 17 00:00:00 2001 From: Lukasz Dorau Date: Mon, 13 Aug 2012 11:56:19 +0200 Subject: [PATCH] Manage.c: fix make everything compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: NeilBrown --- Manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;