Skip to content

Commit

Permalink
Damn you WIN32
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Nov 16, 2024
1 parent 7c79076 commit db6b7d1
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.GetString().c_str());
_putenv_s(name.GetString().c_str(), value.GetString().c_str());
#else
setenv(var_name.c_str(), value.GetString().c_str(), true);
#endif
Expand Down

0 comments on commit db6b7d1

Please sign in to comment.