At Wed, 15 Jan 2014 15:16:00 +0800,
Liu Yuan wrote:
> 
> This actuall fixes a bug that 045 fails with -ec specified. Instead of add a
> memset() to init_erasure_buffer() to fix the bug, I prefer to make xvalloc()
> a zeroed memory version, because:
> 
> - present CPU and glibc is very good at zero out a memory region.
> - zeroed version will avoid future misuage of xvalloc() that expect it to 
> return
>   zeroed memory.
> 
> Signed-off-by: Liu Yuan <namei.u...@gmail.com>
> ---
>  lib/util.c | 2 ++
>  1 file changed, 2 insertions(+)

Looks good to me.
Reviewed-by: Hitoshi Mitake <mitake.hito...@lab.ntt.co.jp>

Thanks,
Hitoshi
-- 
sheepdog mailing list
sheepdog@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to