diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-15 22:40:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-15 22:40:40 +0300 |
commit | b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe (patch) | |
tree | 279df324772bbd8e69aed934940cd4aa8da58999 /src/net/ipc.cpp | |
parent | bc5f2bc679b7af67e652fad23f4132e212c78845 (diff) | |
download | plus-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.gz plus-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.bz2 plus-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.xz plus-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.zip |
Fix code style.
Diffstat (limited to 'src/net/ipc.cpp')
-rw-r--r-- | src/net/ipc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ipc.cpp b/src/net/ipc.cpp index 407f8ca3b..2f910eaed 100644 --- a/src/net/ipc.cpp +++ b/src/net/ipc.cpp @@ -165,8 +165,9 @@ void IPC::start() return; unsigned short port(44007); - if (getenv("IPC_PORT") != nullptr) - port = static_cast<unsigned short>(atoi(getenv("IPC_PORT"))); + const char *const portStr = getenv("IPC_PORT"); + if (portStr != nullptr) + port = static_cast<unsigned short>(atoi(portStr)); logger->log("Starting IPC..."); ipc = new IPC; |