Fix potential defect
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 18 Jan 2021 07:55:17 +0000 (16:55 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Thu, 21 Jan 2021 01:20:45 +0000 (10:20 +0900)
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
common/socket/abstract_socket.cc
common/socket/abstract_socket.hh

index d30a5b9..7bb6307 100644 (file)
@@ -25,7 +25,8 @@
 
 namespace pkgmgr_common {
 
-AbstractSocket::AbstractSocket(std::string path) : path_(std::move(path)), fd_(-1) {
+AbstractSocket::AbstractSocket(std::string path)
+    : path_(std::move(path)), fd_(-1) {
   Create();
 }
 
index 4a30379..bab3fd4 100644 (file)
@@ -41,7 +41,6 @@ class AbstractSocket {
  protected:
   std::string path_;
   int fd_;
-  struct sockaddr_un addr_;
 };
 
 }  // pkgmgr_common