repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
memset() is posix, bzero() is not change bzero into memset
[deb_libnfs.git]
/
lib
/
init.c
diff --git
a/lib/init.c
b/lib/init.c
index 464f88a2f940d79de6375ac81da51c3226d82036..7ef329298afb136f337d4a1d5cea2adbc4aadda5 100644
(file)
--- a/
lib/init.c
+++ b/
lib/init.c
@@
-40,7
+40,7
@@
struct rpc_context *rpc_init_context(void)
if (rpc == NULL) {
return NULL;
}
-
bzero((char *)rpc
, sizeof(struct rpc_context));
+
memset(rpc, 0
, sizeof(struct rpc_context));
rpc->encodebuflen = 65536;
rpc->encodebuf = malloc(rpc->encodebuflen);