mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
regression: avoids memcheck complains
This commit is contained in:
parent
248cce8aff
commit
06aa4e1cdd
@ -426,8 +426,9 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
std::string ver(MODSECURITY_VERSION);
|
std::string ver(MODSECURITY_VERSION);
|
||||||
std::string envvar("MODSECURITY=ModSecurity " + ver + " regression tests");
|
std::string envvar("MODSECURITY=ModSecurity " + ver + " regression tests");
|
||||||
|
char *eenvvar = strdup(envvar.c_str());
|
||||||
|
|
||||||
putenv(strdup(envvar.c_str()));
|
putenv(eenvvar);
|
||||||
#ifndef NO_LOGS
|
#ifndef NO_LOGS
|
||||||
int test_number = 0;
|
int test_number = 0;
|
||||||
#endif
|
#endif
|
||||||
@ -557,5 +558,6 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
free(eenvvar);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user