diff --git a/tools/rules-check/rules-check.cc b/tools/rules-check/rules-check.cc index 9061f9f1..f494d0c3 100644 --- a/tools/rules-check/rules-check.cc +++ b/tools/rules-check/rules-check.cc @@ -32,7 +32,7 @@ void print_help(const char *name) { int main(int argc, char **argv) { - std::unique_ptr rules (new modsecurity::RulesSet()); + std::unique_ptr rules = std::make_unique(); char **args = argv; int ret = 0; @@ -45,7 +45,7 @@ int main(int argc, char **argv) { while (*args != NULL) { struct stat buffer; - std::string arg = (*args); + std::string arg = *args; std::string err; int r;