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 <eb@ilities.com>
This commit is contained in:
		
							parent
							
								
									c10a7fab4a
								
							
						
					
					
						commit
						336a9da8b4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue