git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Use calloc, rather than malloc/memset
[openafs.git]
/
src
/
lwp
/
test
/
selsubs.c
diff --git
a/src/lwp/test/selsubs.c
b/src/lwp/test/selsubs.c
index
0567851
..
efc16a5
100644
(file)
--- a/
src/lwp/test/selsubs.c
+++ b/
src/lwp/test/selsubs.c
@@
-38,8
+38,7
@@
fd_set *
IOMGR_AllocFDSet(void)
{
- fd_set *tmp = (fd_set *) malloc(sizeof(fd_set));
- memset(tmp, 0, sizeof(fd_set));
+ fd_set *tmp = calloc(1, sizeof(fd_set));
return tmp;
}