mirror of
https://github.com/curl/curl.git
synced 2026-08-05 05:16:18 +03:00
lib: reduce variable scopes
Fixes Codacy/CppCheck warnings. Closes https://github.com/curl/curl/pull/3872
This commit is contained in:
parent
27af2ec219
commit
10db3ef21e
23 changed files with 115 additions and 124 deletions
|
|
@ -306,9 +306,8 @@ void *curl_dbg_realloc(void *ptr, size_t wantedsize,
|
|||
|
||||
void curl_dbg_free(void *ptr, int line, const char *source)
|
||||
{
|
||||
struct memdebug *mem;
|
||||
|
||||
if(ptr) {
|
||||
struct memdebug *mem;
|
||||
|
||||
#ifdef __INTEL_COMPILER
|
||||
# pragma warning(push)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue