diff --git a/src/cart/crt_init.c b/src/cart/crt_init.c index 72befef94940..aa5716e71b52 100644 --- a/src/cart/crt_init.c +++ b/src/cart/crt_init.c @@ -100,11 +100,12 @@ crt_lib_fini(void) static void dump_envariables(void) { - int i; - char *val; + int i; D_INFO("-- ENVARS: --\n"); for (i = 0; i < ARRAY_SIZE(crt_env_names); i++) { + char *val = NULL; + d_agetenv_str(&val, crt_env_names[i]); if (val == NULL) continue; diff --git a/src/cart/utils/crt_utils.c b/src/cart/utils/crt_utils.c index ea2a95b1d4ed..6f7cee03c384 100644 --- a/src/cart/utils/crt_utils.c +++ b/src/cart/utils/crt_utils.c @@ -519,9 +519,9 @@ crtu_dc_mgmt_net_cfg_setenv(const char *name) } D_INFO("CaRT env setup with:\n" - "\tOFI_INTERFACE=%s, OFI_DOMAIN: %s, CRT_PHY_ADDR_STR: %s, " - "CRT_CTX_SHARE_ADDR: %s, CRT_TIMEOUT: %s\n", - ofi_interface, ofi_domain, crt_phy_addr_str, crt_ctx_share_addr, crt_timeout); + "\tOFI_INTERFACE=%s, OFI_DOMAIN: %s, CRT_PHY_ADDR_STR: %s, " + "CRT_CTX_SHARE_ADDR: %s, CRT_TIMEOUT: %s\n", + ofi_interface, ofi_domain, crt_phy_addr_str, crt_ctx_share_addr, crt_timeout); cleanup: d_freeenv_str(&ofi_domain_env);