OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2305-g34afb3e
Gerrit Code Review
Sat, 7 Apr 2012 05:07:51 -0700 (PDT)
The following commit has been merged in the master branch:
Author: Simon Wilkinson <email@example.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
Reviewed-by: Derrick Brashear <firstname.lastname@example.org>
Tested-by: Derrick Brashear <email@example.com>
src/libadmin/vos/afs_vosAdmin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
OpenAFS Master Repository