Skip to content
Snippets Groups Projects
Commit 9fc8800b authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Removed cut-and-paste cruft leading to fclose() of an unopened file

parent a4d6611d
No related branches found
No related tags found
No related merge requests found
......@@ -36,11 +36,9 @@ int test(char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
FILE *hd_src ;
if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
fprintf(stderr, "curl_global_init() failed\n");
fclose(hd_src);
return TEST_ERR_MAJOR_BAD;
}
......@@ -48,7 +46,6 @@ int test(char *URL)
if ((curl = curl_easy_init()) == NULL) {
fprintf(stderr, "curl_easy_init() failed\n");
curl_global_cleanup();
fclose(hd_src);
return TEST_ERR_MAJOR_BAD;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment