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_writeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tool_writeout.c') diff --git a/src/tool_writeout.c b/src/tool_writeout.c index 5d92bd278..ffe47c633 100644 --- a/src/tool_writeout.c +++ b/src/tool_writeout.c @@ -122,9 +122,9 @@ void ourWriteOut(CURL *curl, struct OutStruct *outs, const char *writeinfo) else { /* this is meant as a variable to output */ char *end; - char keepit; - int i; if('{' == ptr[1]) { + char keepit; + int i; bool match = FALSE; end = strchr(ptr, '}'); ptr += 2; /* pass the % and the { */ -- cgit v1.2.3