 1b261c20ed
			
		
	
	1b261c20ed
	
	
	
		
			
			The out parameter of `git_config_string()` is a `const char **` even though we transfer ownership of memory to the caller. This is quite misleading and has led to many memory leaks all over the place. Adapt the parameter to instead be `char **`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			335 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			335 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef MAILMAP_H
 | |
| #define MAILMAP_H
 | |
| 
 | |
| struct string_list;
 | |
| 
 | |
| extern char *git_mailmap_file;
 | |
| extern char *git_mailmap_blob;
 | |
| 
 | |
| int read_mailmap(struct string_list *map);
 | |
| void clear_mailmap(struct string_list *map);
 | |
| 
 | |
| int map_user(struct string_list *map,
 | |
| 			 const char **email, size_t *emaillen, const char **name, size_t *namelen);
 | |
| 
 | |
| #endif
 |