mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	main: Use ast_strdup instead of strdup
Fix compile error in main/utils.c because strdup was used in dummy_start Change-Id: Id61a6cf4f3cbf235450441e10e7da101a6335793
This commit is contained in:
		@@ -1208,7 +1208,7 @@ static void *dummy_start(void *data)
 | 
			
		||||
 | 
			
		||||
	lock_info->thread_id = pthread_self();
 | 
			
		||||
	lock_info->lwp = ast_get_tid();
 | 
			
		||||
	lock_info->thread_name = strdup(a.name);
 | 
			
		||||
	lock_info->thread_name = ast_strdup(a.name);
 | 
			
		||||
 | 
			
		||||
	pthread_mutexattr_init(&mutex_attr);
 | 
			
		||||
	pthread_mutexattr_settype(&mutex_attr, AST_MUTEX_KIND);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user