connect.c: guard config parser from value=NULL
core.gitproxy configuration expects a string value. Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
							parent
							
								
									406d95f2d0
								
							
						
					
					
						commit
						c64b9ad0fc
					
				|  | @ -370,6 +370,8 @@ static int git_proxy_command_options(const char *var, const char *value) | ||||||
|  |  | ||||||
| 		if (git_proxy_command) | 		if (git_proxy_command) | ||||||
| 			return 0; | 			return 0; | ||||||
|  | 		if (!value) | ||||||
|  | 			return config_error_nonbool(var); | ||||||
| 		/* [core] | 		/* [core] | ||||||
| 		 * ;# matches www.kernel.org as well | 		 * ;# matches www.kernel.org as well | ||||||
| 		 * gitproxy = netcatter-1 for kernel.org | 		 * gitproxy = netcatter-1 for kernel.org | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Junio C Hamano
						Junio C Hamano