memset() is posix, bzero() is not change bzero into memset
[deb_libnfs.git] / lib / init.c
index 464f88a2f940d79de6375ac81da51c3226d82036..7ef329298afb136f337d4a1d5cea2adbc4aadda5 100644 (file)
@@ -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);