mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	fix warn in testdisplay: ignoring return value of 'chdir'
Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
		
							parent
							
								
									0bf5fd894c
								
							
						
					
					
						commit
						31dfc98a30
					
				@ -647,6 +647,7 @@ static void enter_exec_path( char **argv )
 | 
			
		||||
	char *exec_path = NULL;
 | 
			
		||||
	char *pos = NULL;
 | 
			
		||||
	short len_path = 0;
 | 
			
		||||
	int ret;
 | 
			
		||||
 | 
			
		||||
	len_path = strlen( argv[0] );
 | 
			
		||||
	exec_path = (char*) malloc(len_path);
 | 
			
		||||
@ -656,7 +657,8 @@ static void enter_exec_path( char **argv )
 | 
			
		||||
	if (pos != NULL)
 | 
			
		||||
		*(pos+1) = '\0';
 | 
			
		||||
 | 
			
		||||
	chdir(exec_path);
 | 
			
		||||
	ret = chdir(exec_path);
 | 
			
		||||
	assert(ret == 0);
 | 
			
		||||
	free(exec_path);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user