mirror of
https://github.com/verilator/verilator.git
synced 2025-05-04 22:46:57 +00:00
Apply 'make format'
This commit is contained in:
parent
7b073fec7d
commit
d192372c7e
@ -80,10 +80,10 @@ string V3Os::getenvStr(const string& envvar, const string& defaultValue) {
|
|||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
// Note: MinGW does not offer _dupenv_s
|
// Note: MinGW does not offer _dupenv_s
|
||||||
const char* envvalue = nullptr;
|
const char* envvalue = nullptr;
|
||||||
_dupenv_s((char **)&envvalue, nullptr, envvar.c_str());
|
_dupenv_s((char**)&envvalue, nullptr, envvar.c_str());
|
||||||
if (envvalue != nullptr) {
|
if (envvalue != nullptr) {
|
||||||
const std::string result{envvalue};
|
const std::string result{envvalue};
|
||||||
free((void *)envvalue);
|
free((void*)envvalue);
|
||||||
ret = result;
|
ret = result;
|
||||||
} else {
|
} else {
|
||||||
ret = defaultValue;
|
ret = defaultValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user