imap-send.c: guard config parser from value=NULL
None of the configuration variables this expects is boolean. Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
							parent
							
								
									451d36bb25
								
							
						
					
					
						commit
						3c17c34ac7
					
				| 
						 | 
				
			
			@ -1254,6 +1254,10 @@ git_imap_config(const char *key, const char *val)
 | 
			
		|||
 | 
			
		||||
	if (strncmp( key, imap_key, sizeof imap_key - 1 ))
 | 
			
		||||
		return 0;
 | 
			
		||||
 | 
			
		||||
	if (!val)
 | 
			
		||||
		return config_error_nonbool(key);
 | 
			
		||||
 | 
			
		||||
	key += sizeof imap_key - 1;
 | 
			
		||||
 | 
			
		||||
	if (!strcmp( "folder", key )) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue