From 8ec68e1d7d65e3b1f13d29320680fd030698d5c6 Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Wed, 9 Oct 2019 16:25:46 +0200 Subject: [PATCH] No printing of null pointers in config errors Signed-off-by: Erik Boasson --- src/core/ddsc/src/dds_domain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/ddsc/src/dds_domain.c b/src/core/ddsc/src/dds_domain.c index 1300b75..feaed61 100644 --- a/src/core/ddsc/src/dds_domain.c +++ b/src/core/ddsc/src/dds_domain.c @@ -51,7 +51,6 @@ static const ddsrt_avl_treedef_t dds_domaintree_def = DDSRT_AVL_TREEDEF_INITIALI static dds_return_t dds_domain_init (dds_domain *domain, dds_domainid_t domain_id, const char *config) { dds_return_t ret = DDS_RETCODE_OK; - char * uri = NULL; uint32_t len; dds_entity_t domain_handle; @@ -90,7 +89,7 @@ static dds_return_t dds_domain_init (dds_domain *domain, dds_domainid_t domain_i domain->cfgst = config_init (config, &domain->gv.config, domain_id); if (domain->cfgst == NULL) { - DDS_ILOG (DDS_LC_CONFIG, domain_id, "Failed to parse configuration XML file %s\n", uri); + DDS_ILOG (DDS_LC_CONFIG, domain_id, "Failed to parse configuration\n"); ret = DDS_RETCODE_ERROR; goto fail_config; }