Skip to content

Commit

Permalink
Fix WIN32 _putenv_s
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Nov 16, 2024
1 parent bb34a9f commit 7c79076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpserver_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static void SetEnvValue(DataChunk &args, ExpressionState &state, Vector &result,
throw std::invalid_argument(value_type + " cannot be empty.");
}
#ifdef _WIN32
_putenv_s(name.c_str(), value.c_str());
_putenv_s(name.c_str(), value.GetString().c_str());
#else
setenv(var_name.c_str(), value.GetString().c_str(), true);
#endif
Expand Down

0 comments on commit 7c79076

Please sign in to comment.