From b2b6ab8eff317f6a507ab23897ea6cd5c718d99a Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Thu, 2 Aug 2018 16:02:33 +0300 Subject: All: remove memset() before sprintf() It's not needed. There's a good chance the compiler is smart enough to remove it anyway, but it can't hurt - I hope. Compile-tested only! Change-Id: Id7c054e146ba630227affa591007803f3046416b updates: bz#1193929 Signed-off-by: Yaniv Kaul --- rpc/rpc-transport/rdma/src/name.c | 1 - 1 file changed, 1 deletion(-) (limited to 'rpc/rpc-transport/rdma') diff --git a/rpc/rpc-transport/rdma/src/name.c b/rpc/rpc-transport/rdma/src/name.c index f132b9638f8..2db1f08c751 100644 --- a/rpc/rpc-transport/rdma/src/name.c +++ b/rpc/rpc-transport/rdma/src/name.c @@ -411,7 +411,6 @@ af_inet_server_get_local_sockaddr (rpc_transport_t *this, listen_host = data_to_str (listen_host_data); } - memset (service, 0, sizeof (service)); sprintf (service, "%d", listen_port); memset (&hints, 0, sizeof (hints)); -- cgit