OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2305-g34afb3e

Gerrit Code Review gerrit@openafs.org
Sat, 7 Apr 2012 05:07:51 -0700 (PDT)


The following commit has been merged in the master branch:
commit 34afb3e6b903fc1659b1c869fa2fb4226038e076
Author: Simon Wilkinson <sxw@your-file-system.com>
Date:   Fri Mar 30 19:16:50 2012 +0100

    libadmin: Clear structures according to their size.
    
    memset(a, 0, sizeof(a)) is rarely correct, unless a is an error. Use the
    size of the destination structure, rather than the size of a pointer to it
    when deciding how much memory to clear.
    
    Caught by clang's new error messages
    
    Change-Id: Ia6c566534efae2f67f1b9bd22198d352238a987c
    Reviewed-on: http://gerrit.openafs.org/7076
    Reviewed-by: Derrick Brashear <shadow@dementix.org>
    Tested-by: Derrick Brashear <shadow@dementix.org>

 src/libadmin/vos/afs_vosAdmin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-- 
OpenAFS Master Repository