Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http.c: Fix problem with repeated calls of http_init
Calling http_init after calling http_cleanup causes a segfault. This is due to the pragma_header curl_slist being freed but not being set to NULL. The subsequent call to http_init tries to setup the slist again, but it now points to an invalid memory location. Signed-off-by: Julian Phillips <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information