sock/posix: Remove potential usage of uninitialized variable
Fixed valgrind issue found when running unit tests. Fixes issue #969 Signed-off-by: Mateusz Kozlowski <mateusz.kozlowski@intel.com> Change-Id: I50ffa478e16487121c6c3148b15e15162506187b Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469132 Reviewed-by: Maciej Szwed <maciej.szwed@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
34a0d851f6
commit
44cf09c33b
@ -322,7 +322,7 @@ spdk_posix_sock_accept(struct spdk_sock *_sock)
|
||||
int rc, fd;
|
||||
struct spdk_posix_sock *new_sock;
|
||||
int flag;
|
||||
size_t sz;
|
||||
size_t sz = 0;
|
||||
|
||||
memset(&sa, 0, sizeof(sa));
|
||||
salen = sizeof(sa);
|
||||
|
Loading…
x
Reference in New Issue
Block a user