summaryrefslogtreecommitdiff
path: root/src/net/ipc.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-15 22:40:40 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-15 22:40:40 +0300
commitb10c6ee0b9c8428f9ed426357a58aa42ee14cbfe (patch)
tree279df324772bbd8e69aed934940cd4aa8da58999 /src/net/ipc.cpp
parentbc5f2bc679b7af67e652fad23f4132e212c78845 (diff)
downloadmv-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.gz
mv-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.bz2
mv-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.xz
mv-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.zip
Fix code style.
Diffstat (limited to 'src/net/ipc.cpp')
-rw-r--r--src/net/ipc.cpp5
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;