test: solve error about uninitialised data_buf
When running sock_ut in fedora29 with memcheck, there is an error "Syscall param sendmsg(msg.msg_iov[0]) points to uninitialised byte(s)". Signed-off-by: richael zhuang <richael.zhuang@arm.com> Change-Id: Iaddb85ed2da2f45e200569c936f05174bc89c99b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/874 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
dcac8e9706
commit
94b04d4f2c
@ -734,7 +734,7 @@ _sock_close(const char *ip, int port, char *impl_name)
|
||||
struct spdk_sock *listen_sock;
|
||||
struct spdk_sock *server_sock;
|
||||
struct spdk_sock *client_sock;
|
||||
uint8_t data_buf[64];
|
||||
uint8_t data_buf[64] = {};
|
||||
struct spdk_sock_request *req1, *req2;
|
||||
struct close_ctx ctx = {};
|
||||
bool cb_arg2 = false;
|
||||
|
Loading…
Reference in New Issue
Block a user