mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Add _putenv() in case of WIN32 port instead of setenv()
This commit is contained in:
parent
82801752d4
commit
6cffa8f904
@ -482,7 +482,12 @@ int main(int argc, char **argv) {
|
||||
std::string ver(MODSECURITY_VERSION);
|
||||
std::string envvar("ModSecurity " + ver + " regression tests");
|
||||
|
||||
#ifndef WIN32
|
||||
setenv("MODSECURITY", envvar.c_str(), 1);
|
||||
#else
|
||||
_putenv_s("MODSECURITY", envvar.c_str());
|
||||
#endif
|
||||
|
||||
#ifndef NO_LOGS
|
||||
int test_number = 0;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user