2006-10-30 05:08:45

by Andrew Paprocki

[permalink] [raw]
Subject: [PATCH] Fixed uninitialized variable warning in drivers/md/dm-exception-store.c.

Fixed uninitialized variable warning in drivers/md/dm-exception-store.c.

Signed-off-by: Andrew Paprocki <[email protected]>

---
drivers/md/dm-exception-store.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c
index 99cdffa..d50ffde 100644
--- a/drivers/md/dm-exception-store.c
+++ b/drivers/md/dm-exception-store.c
@@ -413,7 +413,7 @@ static void persistent_destroy(struct ex

static int persistent_read_metadata(struct exception_store *store)
{
- int r, new_snapshot;
+ int r, new_snapshot = 0;
struct pstore *ps = get_info(store);

/*
--
1.4.1.1


2006-10-30 11:39:36

by Jiri Slaby

[permalink] [raw]
Subject: Re: [PATCH] Fixed uninitialized variable warning in drivers/md/dm-exception-store.c.

Andrew Paprocki wrote:
> Fixed uninitialized variable warning in drivers/md/dm-exception-store.c.
>
> Signed-off-by: Andrew Paprocki <[email protected]>
>
> ---
> drivers/md/dm-exception-store.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/md/dm-exception-store.c
> b/drivers/md/dm-exception-store.c
> index 99cdffa..d50ffde 100644
> --- a/drivers/md/dm-exception-store.c
> +++ b/drivers/md/dm-exception-store.c
> @@ -413,7 +413,7 @@ static void persistent_destroy(struct ex
>
> static int persistent_read_metadata(struct exception_store *store)
> {
> - int r, new_snapshot;
> + int r, new_snapshot = 0;
> struct pstore *ps = get_info(store);
>
> /*

Already in -mm.

regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E