Thread (2 messages) 2 messages, 2 authors, 2012-08-14

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

flat view

From: NeilBrown <hidden>
Date: 2012-08-14 00:00:52

On Mon, 13 Aug 2012 11:56:19 +0200 Lukasz Dorau [off-list ref]
wrote:
quoted hunk ↗ jump to hunk
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 <redacted>
---
 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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help