From e23c52b3295a525fbaae9e7ed3e7061fea6dffc2 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sat, 25 May 2019 10:06:08 +0200 Subject: build: fix Codacy warnings Reduce variable scopes and remove redundant variable stores. Closes https://github.com/curl/curl/pull/3975 --- docs/examples/ftp-wildcard.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'docs/examples/ftp-wildcard.c') diff --git a/docs/examples/ftp-wildcard.c b/docs/examples/ftp-wildcard.c index f249bc135..ee815973d 100644 --- a/docs/examples/ftp-wildcard.c +++ b/docs/examples/ftp-wildcard.c @@ -41,8 +41,6 @@ static size_t write_it(char *buff, size_t size, size_t nmemb, int main(int argc, char **argv) { - int rc = CURLE_OK; - /* curl easy handle */ CURL *handle; @@ -50,7 +48,7 @@ int main(int argc, char **argv) struct callback_data data = { 0 }; /* global initialization */ - rc = curl_global_init(CURL_GLOBAL_ALL); + int rc = curl_global_init(CURL_GLOBAL_ALL); if(rc) return rc; -- cgit v1.2.3