diff options
author | qctecmdr Service <qctecmdr@qualcomm.com> | 2019-01-15 10:36:14 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-01-15 10:36:14 -0800 |
commit | 7d9edb3c227a53d146afd00967b9619da33e5fad (patch) | |
tree | 4c1daade88f0294cdd5d2768962062ec39a1b8cc /utils | |
parent | 63dca9043692387636fd8b8023129d1ef37b9df9 (diff) | |
parent | abfeea182d6ea4905f80da6f17556da278cce4d4 (diff) | |
download | gps-7d9edb3c227a53d146afd00967b9619da33e5fad.tar.gz |
Merge "Fix KW P1 related issues"
Diffstat (limited to 'utils')
-rw-r--r-- | utils/LocIpc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/LocIpc.h b/utils/LocIpc.h index a1a994d..62309e7 100644 --- a/utils/LocIpc.h +++ b/utils/LocIpc.h @@ -106,7 +106,7 @@ public: // This class hides generated fd and destination address object from user. inline LocIpcSender(const char* destSocket): LocIpcSender(std::make_shared<int>(::socket(AF_UNIX, SOCK_DGRAM, 0)), destSocket) { - if (-1 == *mSocket) { + if (mSocket != nullptr && -1 == *mSocket) { mSocket = nullptr; } } |