commit | ffec46fea48f1f05fbe2fb863b44fd2dd718c50f | [log] [tgz] |
---|---|---|
author | Lukas Czerner <lczerner@redhat.com> | Wed May 18 14:19:52 2011 +0200 |
committer | Theodore Ts'o <tytso@mit.edu> | Wed May 18 11:41:02 2011 -0400 |
tree | 99fa5a75dc1a5b67fa5aba3a7cbe136cbb212ea4 | |
parent | f5ae5b3a12a052c70f139d3f8431d3eb25ccae3b [diff] |
e2fsprogs: Add memory allocation and zero-out helpers Add functions ext2fs_get_memzero() which will malloc() the memory using ext2fs_get_mem(), but it will zero the allocated memory afterwards with memset(). Add function ext2fs_get_arrayzero() which will use calloc() for allocating and zero-out the array. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>