From c45360d4633850839bb9c2d77dbf8a8285e9ad49 Mon Sep 17 00:00:00 2001 From: Marian Klymov Date: Sat, 2 Jun 2018 23:52:56 +0300 Subject: cppcheck: fix warnings - Get rid of variable that was generating false positive warning (unitialized) - Fix issues in tests - Reduce scope of several variables all over etc Closes #2631 --- src/tool_libinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tool_libinfo.c') diff --git a/src/tool_libinfo.c b/src/tool_libinfo.c index d2bf7fb93..583570988 100644 --- a/src/tool_libinfo.c +++ b/src/tool_libinfo.c @@ -76,7 +76,6 @@ CURLcode get_libcurl_info(void) { NULL, 0 } }; - struct proto_name_pattern const *p; const char *const *proto; /* Pointer to libcurl's run-time version information */ @@ -88,6 +87,7 @@ CURLcode get_libcurl_info(void) built_in_protos = 0; if(curlinfo->protocols) { for(proto = curlinfo->protocols; *proto; proto++) { + struct proto_name_pattern const *p; for(p = possibly_built_in; p->proto_name; p++) { if(curl_strequal(*proto, p->proto_name)) { built_in_protos |= p->proto_pattern; -- cgit v1.2.3