fix crash on invalid configurations by setting thread pointer and log buffer to a statically allocated descriptor until the threading structures have been initialized properly
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
		
							parent
							
								
									33c89f0d47
								
							
						
					
					
						commit
						12cc159949
					
				
					 4 changed files with 11 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -110,6 +110,7 @@ dds_init(void)
 | 
			
		|||
  os_mutexInit (&gv.static_logbuf_lock);
 | 
			
		||||
  gv.static_logbuf_lock_inited = 1;
 | 
			
		||||
  os_mutexInit (&dds_global.m_mutex);
 | 
			
		||||
  thread_states_init_static();
 | 
			
		||||
 | 
			
		||||
  uri = os_getenv (DDSC_PROJECT_NAME_NOSPACE_CAPS"_URI");
 | 
			
		||||
  dds_cfgst = config_init (uri);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue