summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJusung Son <jusung07.son@samsung.com>2020-09-08 11:00:36 +0900
committerJusung Son <jusung07.son@samsung.com>2020-09-08 11:00:36 +0900
commitafabcd7f3884b9b4d546620cab2b2912c03e5473 (patch)
tree86c9d387fd3c1583d8e82cd4376d804f6276fa4b
parent6d33931f89333573d9ab8a6d60f1be5025a936c3 (diff)
downloadnotification-afabcd7f3884b9b4d546620cab2b2912c03e5473.tar.gz
notification-afabcd7f3884b9b4d546620cab2b2912c03e5473.tar.bz2
notification-afabcd7f3884b9b4d546620cab2b2912c03e5473.zip
Add return value check
Change-Id: I70f76343e6ebebddf0047cc7a95f4c4c5a3808c8 Signed-off-by: Jusung Son <jusung07.son@samsung.com>
-rw-r--r--notification-ex/shared_file.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/notification-ex/shared_file.cc b/notification-ex/shared_file.cc
index c860fd1..eaef907 100644
--- a/notification-ex/shared_file.cc
+++ b/notification-ex/shared_file.cc
@@ -533,7 +533,10 @@ int SharedFile::RemovePrivateSharing(list<shared_ptr<AbstractItem>> notiList,
LOGE("Failed to remove shared_file(%s)", path_array[i]);
}
}
- g_rmdir(sharing_data.dir.c_str());
+
+ if (g_rmdir(sharing_data.dir.c_str()) != 0)
+ LOGE("Failed to remove sharing directory(%s)(%d)",
+ sharing_data.dir.c_str(), errno);
}
}