Browse Source

[Minor] Do not stop when cannot parse query string in clang plugin

tags/1.9.3
Vsevolod Stakhov 5 years ago
parent
commit
c77208a34e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      clang-plugin/printf_check.cc

+ 2
- 1
clang-plugin/printf_check.cc View File

@@ -392,7 +392,8 @@ namespace rspamd {
if (!query->isEvaluatable (*pcontext)) {
print_warning (std::string ("cannot evaluate query"),
E, this->pcontext, this->ci);
return false;
/* It is not assumed to be an error */
return true;
}

clang::Expr::EvalResult r;

Loading…
Cancel
Save