mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	util: if NULL is passed to pa_path_get_filename() just hand it through
This commit is contained in:
		
							parent
							
								
									b03a650160
								
							
						
					
					
						commit
						6773d000e3
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -219,7 +219,8 @@ char *pa_get_binary_name(char *s, size_t l) {
 | 
			
		|||
char *pa_path_get_filename(const char *p) {
 | 
			
		||||
    char *fn;
 | 
			
		||||
 | 
			
		||||
    pa_assert(p);
 | 
			
		||||
    if (!p)
 | 
			
		||||
        return NULL;
 | 
			
		||||
 | 
			
		||||
    if ((fn = strrchr(p, PA_PATH_SEP_CHAR)))
 | 
			
		||||
        return fn+1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue