Skip to content

Commit 9857dec

Browse files
address comments left by @NikitaZotov on #453 ([tools][server] Environment variables for sc-server host and port );
1 parent 768edc8 commit 9857dec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sc-tools/sc-server/src/sc_server_module.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ void ScServerModule::Initialize(ScMemoryContext *)
2020
// TODO(NikitaZotov): Configure all platform-dependent components from kb.
2121

2222
sc_char const * host = std::getenv("SC_SERVER_HOST");
23-
if (host != null_ptr)
23+
if (host != nullptr)
2424
ms_serverParams.Insert({"host", host});
2525

2626
sc_char const * port = std::getenv("SC_SERVER_PORT");
27-
if (port != null_ptr)
27+
if (port != nullptr)
2828
ms_serverParams.Insert({"port", port});
2929

3030
ScConfig config{ScMemory::ms_configPath, {{"log_file"}}};

0 commit comments

Comments
 (0)