From 336a9da8b42c2880a53556b39a2aaa56ce59edfb Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Tue, 15 Jan 2019 15:05:03 +0100 Subject: [PATCH] fix read of uninitialized program name in dds_init dds_init generates an entity name for the participant derived from the process name and process id, but the name is currently uninitialised (temporarily so, caused by a recent update to the OS abstraction layer). Signed-off-by: Erik Boasson --- src/core/ddsc/src/dds_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ddsc/src/dds_init.c b/src/core/ddsc/src/dds_init.c index 23802d4..bc41904 100644 --- a/src/core/ddsc/src/dds_init.c +++ b/src/core/ddsc/src/dds_init.c @@ -44,7 +44,7 @@ dds_init(dds_domainid_t domain) { dds_return_t ret = DDS_RETCODE_OK; const char * uri; - char progname[50]; + char progname[50] = "UNKNOWN"; /* FIXME: once retrieving process names is back in */ char hostname[64]; uint32_t len; os_mutex *init_mutex;