http: style fixes for curl_multi_init error check
Unless there is a good reason, we should use die() rather than fprintf/exit. We can also shorten the message to match other curl init failures (and match our usual lowercase no-full-stop style). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Aug 17, 2014 at 03:35 UTC
8837eb47f27665450c898affc39816c48edacd80
1 file changed
+2
-4
http.c
+2
-4
@@ -421,10 +421,8 @@ void http_init(struct remote *remote, const char *url, int proactive_auth)
421
}
422
423
curlm = curl_multi_init();
424
- if (curlm == NULL) {
425
- fprintf(stderr, "Error creating curl multi handle.\n");
426
- exit(1);
427
- }
424
+ if (!curlm)
425
+ die("curl_multi_init failed");
426
#endif
427
428
if (getenv("GIT_SSL_NO_VERIFY"))