From 9bdc45693a8897a90ca7995e0987582480fe2c8e Mon Sep 17 00:00:00 2001 From: Rui Chang Date: Tue, 2 Feb 2021 10:18:47 +0800 Subject: [PATCH] lib/util: Fix valgrind error reported on ARM platform Signed-off-by: Rui Chang Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6214 (master) (cherry picked from commit 1293377629ad9ae95373178c919dcbe7d0fc2a95) Change-Id: I244a1b0350b4426666e390781b500de65d250c09 Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6391 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Aleksey Marchuk Reviewed-by: Rui Chang --- lib/util/fd_group.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/fd_group.c b/lib/util/fd_group.c index d3f910467..217ca43f1 100644 --- a/lib/util/fd_group.c +++ b/lib/util/fd_group.c @@ -85,8 +85,8 @@ int spdk_fd_group_add(struct spdk_fd_group *fgrp, int efd, spdk_fd_fn fn, void *arg) { - struct event_handler *ehdlr; - struct epoll_event epevent; + struct event_handler *ehdlr = NULL; + struct epoll_event epevent = {0}; int rc; /* parameter checking */