diff options
author | Lukasz Dorau <lukasz.dorau@intel.com> | 2012-08-13 11:56:19 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-08-14 01:55:29 +0200 |
commit | 6d43efb59b16a53236a62f99beff415860aa66b2 (patch) | |
tree | eb7ff96fe991cd76b206980f3270f9c06046d679 | |
parent | sha1.h: remove ansidecl.h header inclusion (diff) | |
download | mdadm-6d43efb59b16a53236a62f99beff415860aa66b2.tar.xz mdadm-6d43efb59b16a53236a62f99beff415860aa66b2.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | Manage.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |