From 86c5fb31412fd60de0eeac5a1d1a6088c33a1141 Mon Sep 17 00:00:00 2001 From: Jerome Soumagne Date: Wed, 4 Oct 2023 17:13:46 -0500 Subject: [PATCH] HG Core: fix potential warnings --- src/mercury_core.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mercury_core.c b/src/mercury_core.c index c31db7a8..edeb3ffc 100644 --- a/src/mercury_core.c +++ b/src/mercury_core.c @@ -6230,9 +6230,9 @@ HG_Core_create(hg_core_context_t *context, hg_core_addr_t addr, hg_id_t id, hg_core_handle_t *handle_p) { struct hg_core_private_handle *hg_core_handle = NULL; - na_class_t *na_class; - na_context_t *na_context; - na_addr_t *na_addr; + na_class_t *na_class = NULL; + na_context_t *na_context = NULL; + na_addr_t *na_addr = NULL; hg_return_t ret; HG_CHECK_SUBSYS_ERROR(rpc, context == NULL, error, ret, HG_INVALID_ARG, @@ -6302,9 +6302,9 @@ HG_Core_reset(hg_core_handle_t handle, hg_core_addr_t addr, hg_id_t id) { struct hg_core_private_handle *hg_core_handle = (struct hg_core_private_handle *) handle; - na_class_t *na_class; - na_context_t *na_context; - na_addr_t *na_addr; + na_class_t *na_class = NULL; + na_context_t *na_context = NULL; + na_addr_t *na_addr = NULL; hg_return_t ret; int32_t status;