diff options
author | Yingjie Wang <yingjiewang@codeaurora.org> | 2019-01-04 15:56:04 +0800 |
---|---|---|
committer | Yingjie Wang <yingjiewang@codeaurora.org> | 2019-01-04 16:19:24 +0800 |
commit | abfeea182d6ea4905f80da6f17556da278cce4d4 (patch) | |
tree | 1a82e6b1a00631248501fb094e82b06ffcd7f851 /utils | |
parent | 3203504a28c72cf9823f1864b46b8692cf7979ec (diff) | |
download | gps-abfeea182d6ea4905f80da6f17556da278cce4d4.tar.gz |
Fix KW P1 related issues
Change-Id: Ifc3cb9dcabf2e07439fd596b5ad33b46ea562b3d
CRs-fixed: 2375836
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; } } |