From: Dan Fandrich Date: Thu, 27 Sep 2007 17:22:10 +0000 (+0000) Subject: Removed cut-and-paste cruft leading to fclose() of an unopened file X-Git-Tag: curl-7_17_1~182 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fc8800b6d906f4c9d9d8d464eea91dd2bc40ad3;p=thirdparty%2Fcurl.git Removed cut-and-paste cruft leading to fclose() of an unopened file --- diff --git a/tests/libtest/lib542.c b/tests/libtest/lib542.c index 6aee9013f5..deb229d19e 100644 --- a/tests/libtest/lib542.c +++ b/tests/libtest/lib542.c @@ -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; }