Skip to content

Commit 7c79076

Browse files
authored
Fix WIN32 _putenv_s
1 parent bb34a9f commit 7c79076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/httpserver_extension.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static void SetEnvValue(DataChunk &args, ExpressionState &state, Vector &result,
6666
throw std::invalid_argument(value_type + " cannot be empty.");
6767
}
6868
#ifdef _WIN32
69-
_putenv_s(name.c_str(), value.c_str());
69+
_putenv_s(name.c_str(), value.GetString().c_str());
7070
#else
7171
setenv(var_name.c_str(), value.GetString().c_str(), true);
7272
#endif

0 commit comments

Comments
 (0)