mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-11 15:20:59 +00:00
Fixed addhead.cpp for cppcheck
This commit is contained in:
parent
c7cf86c2ef
commit
1af7aaeccb
@ -201,10 +201,8 @@ bool AdditionalHeader::AddHeader(headers_t& meta, const char* path) const
|
|||||||
|
|
||||||
if(paddhead->pregex){
|
if(paddhead->pregex){
|
||||||
// regex
|
// regex
|
||||||
int result;
|
|
||||||
regmatch_t match; // not use
|
regmatch_t match; // not use
|
||||||
|
if(0 == regexec(paddhead->pregex, path, 1, &match, 0)){
|
||||||
if(0 == (result = regexec(paddhead->pregex, path, 1, &match, 0))){
|
|
||||||
// match -> adding header
|
// match -> adding header
|
||||||
meta[paddhead->headkey] = paddhead->headvalue;
|
meta[paddhead->headkey] = paddhead->headvalue;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user