]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Initialise ->container and ->member properly.
authorNeilBrown <neilb@suse.de>
Mon, 3 Nov 2008 23:35:09 +0000 (10:35 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 3 Nov 2008 23:35:09 +0000 (10:35 +1100)
Now that we are using these values, we need to initialise them
properly.

Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.c

diff --git a/mdadm.c b/mdadm.c
index 3229de4bcbf3dca20228adedc69987ab85d56d9c..975922044a7d6459b08f47c22d1d585b0841bf01 100644 (file)
--- a/mdadm.c
+++ b/mdadm.c
@@ -124,6 +124,8 @@ int main(int argc, char *argv[])
        ident.bitmap_fd = -1;
        ident.bitmap_file = NULL;
        ident.name[0] = 0;
+       ident.container = NULL;
+       ident.member = NULL;
 
        while ((option_index = -1) ,
               (opt=getopt_long(argc, argv,