Skip to content

Commit

Permalink
address comments left by @NikitaZotov on #453 ([tools][server] Enviro…
Browse files Browse the repository at this point in the history
…nment variables for sc-server host and port );
  • Loading branch information
ellipsis-dev[bot] authored Jan 14, 2025
1 parent 768edc8 commit 9857dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sc-tools/sc-server/src/sc_server_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ void ScServerModule::Initialize(ScMemoryContext *)
// TODO(NikitaZotov): Configure all platform-dependent components from kb.

sc_char const * host = std::getenv("SC_SERVER_HOST");
if (host != null_ptr)
if (host != nullptr)
ms_serverParams.Insert({"host", host});

sc_char const * port = std::getenv("SC_SERVER_PORT");
if (port != null_ptr)
if (port != nullptr)
ms_serverParams.Insert({"port", port});

ScConfig config{ScMemory::ms_configPath, {{"log_file"}}};
Expand Down

0 comments on commit 9857dec

Please sign in to comment.