projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4306e54
)
(cache_init): Use calloc instead of malloc&bzero.
author
drepper
<drepper>
Fri, 5 May 2006 16:18:06 +0000
(16:18 +0000)
committer
drepper
<drepper>
Fri, 5 May 2006 16:18:06 +0000
(16:18 +0000)
sunrpc/svcauth_des.c
patch
|
blob
|
history
diff --git
a/sunrpc/svcauth_des.c
b/sunrpc/svcauth_des.c
index
becdd50
..
933d001
100644
(file)
--- a/
sunrpc/svcauth_des.c
+++ b/
sunrpc/svcauth_des.c
@@
-396,11
+396,9
@@
cache_init (void)
register int i;
authdes_cache = (struct cache_entry *)
-
mem_alloc (sizeof (struct cache_entry) * AUTHDES_CACHESZ
);
+
calloc (sizeof (struct cache_entry) * AUTHDES_CACHESZ, 1
);
if (authdes_cache == NULL)
return;
- __bzero ((char *) authdes_cache,
- sizeof (struct cache_entry) * AUTHDES_CACHESZ);
authdes_lru = (int *) mem_alloc (sizeof (int) * AUTHDES_CACHESZ);
/*