We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8280175 commit 6cffa8fCopy full SHA for 6cffa8f
1 file changed
test/regression/regression.cc
@@ -482,7 +482,12 @@ int main(int argc, char **argv) {
482
std::string ver(MODSECURITY_VERSION);
483
std::string envvar("ModSecurity " + ver + " regression tests");
484
485
+#ifndef WIN32
486
setenv("MODSECURITY", envvar.c_str(), 1);
487
+#else
488
+ _putenv_s("MODSECURITY", envvar.c_str());
489
+#endif
490
+
491
#ifndef NO_LOGS
492
int test_number = 0;
493
#endif
0 commit comments