linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Manage.c: fix make everything compilation error
@ 2012-08-13  9:56 Lukasz Dorau
  2012-08-14  0:00 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Dorau @ 2012-08-13  9:56 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, maciej.patelczyk, ed.ciechanowski, Jacek.Danecki

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

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Manage.c: fix make everything compilation error
  2012-08-13  9:56 [PATCH] Manage.c: fix make everything compilation error Lukasz Dorau
@ 2012-08-14  0:00 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2012-08-14  0:00 UTC (permalink / raw)
  To: Lukasz Dorau; +Cc: linux-raid, maciej.patelczyk, ed.ciechanowski, Jacek.Danecki

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

On Mon, 13 Aug 2012 11:56:19 +0200 Lukasz Dorau <lukasz.dorau@intel.com>
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@intel.com>
> ---
>  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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-14  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13  9:56 [PATCH] Manage.c: fix make everything compilation error Lukasz Dorau
2012-08-14  0:00 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).