Fix wrong condition of if statement 30/309230/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 8 Apr 2024 01:41:06 +0000 (10:41 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 8 Apr 2024 01:41:06 +0000 (10:41 +0900)
The condition of the if statement must be '!port_path_.empty()'.

Change-Id: Ic18f6cf743f2c94267462d0a2c5b61c577d63588
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/stub-internal.cc

index 400e2d358df2973e1d06bc7b4c0981a21f2a4c5e..eccdd29eae2f65fdefe48722c5c4740c9b56fc19 100644 (file)
@@ -108,7 +108,7 @@ Stub::~Stub() {
 
   listener_ = nullptr;
   server_.reset();
-  if (port_path_.empty()) {
+  if (!port_path_.empty()) {
     _W("Delete port path=%s", port_path_.c_str());
     unlink(port_path_.c_str());
   }