From 1af7aaeccbaf9b37238b69d4f25878d9e1512a27 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sun, 7 Feb 2016 05:53:56 +0000 Subject: [PATCH] Fixed addhead.cpp for cppcheck --- src/addhead.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/addhead.cpp b/src/addhead.cpp index be4036f..3dcfb40 100644 --- a/src/addhead.cpp +++ b/src/addhead.cpp @@ -201,10 +201,8 @@ bool AdditionalHeader::AddHeader(headers_t& meta, const char* path) const if(paddhead->pregex){ // regex - int result; regmatch_t match; // not use - - if(0 == (result = regexec(paddhead->pregex, path, 1, &match, 0))){ + if(0 == regexec(paddhead->pregex, path, 1, &match, 0)){ // match -> adding header meta[paddhead->headkey] = paddhead->headvalue; break;