]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Manage: Manage_add(): Avoid NULL initialization of dev_st
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Mar 2016 19:51:03 +0000 (14:51 -0500)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 22 Mar 2016 18:06:07 +0000 (14:06 -0400)
commitfbd3e15c0a42b764b7a95fc3b2095c27cec4664a
tree69eac84373bbf3452189d39bdd526d4cdb740660
parent9d1fbf65a53a210840d513d68818f507124cf88d
Manage: Manage_add(): Avoid NULL initialization of dev_st

dev_st is only ever assigned if array->not_persistent == 0, so move
the second use of it into the same scope where the assignment is
made.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Manage.c