]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.c
mdadm.c:fix compile warning "mdfd is uninitialized"
authorZhilong Liu <zlliu@suse.com>
Mon, 10 Apr 2017 04:49:52 +0000 (12:49 +0800)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Tue, 11 Apr 2017 15:27:53 +0000 (11:27 -0400)
commit5fbc1f1527ec86ae904739a27c0af4e3bc89084e
tree7b23da596595c257348923830e5d9d570d893108
parentdcf3d4de95d1a4cbc65b24a844173ba1c1300b55
mdadm.c:fix compile warning "mdfd is uninitialized"

Initialized the mdfd as -1 to prevent compile error
of some compilers.
For example, gcc version 4.8.5(SUSE Linux).

Signed-off-by: Zhilong Liu <zlliu@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
mdadm.c