]> git.ipfire.org Git - thirdparty/mdadm.git/commit
policy.c: Fix for compiler error
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Tue, 11 Dec 2018 14:04:07 +0000 (15:04 +0100)
committerJes Sorensen <jsorensen@fb.com>
Tue, 11 Dec 2018 18:59:44 +0000 (13:59 -0500)
commit757e55435997e355ee9b03e5d913b5496a3c39a8
treed3d16ee613f7b04c5adacbe887a4657784eedaff
parent467e6a1b4ece8e552ee638dab7f44a4d235ece1a
policy.c: Fix for compiler error

After cd72f9d(policy: support devices with multiple paths.) compilation
on old compilers fails because "ā€˜pā€™ may be used uninitialized
in this function".

Initialize it with NULL to prevent this.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
policy.c