]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Monitor: use calloc rather than malloc
authorNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:58:07 +0000 (20:58 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:58:07 +0000 (20:58 +1100)
commit9bfc6a7d1a8335c4ec963f90a6c6ad4690a86310
tree251ab3047b1d8c76c396c93ea3be51ac959e636d
parenta90e1050b56248858715aae34704fe3558a1f066
Monitor: use calloc rather than malloc

calloc zeros the memory allocated, which is safer, particularly as
we add more things to struct state.

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