From: Jusung Son Date: Tue, 8 Sep 2020 02:00:36 +0000 (+0900) Subject: Add return value check X-Git-Tag: submit/tizen/20200908.020920~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afabcd7f3884b9b4d546620cab2b2912c03e5473;p=platform%2Fcore%2Fapi%2Fnotification.git Add return value check Change-Id: I70f76343e6ebebddf0047cc7a95f4c4c5a3808c8 Signed-off-by: Jusung Son --- diff --git a/notification-ex/shared_file.cc b/notification-ex/shared_file.cc index c860fd11..eaef9073 100644 --- a/notification-ex/shared_file.cc +++ b/notification-ex/shared_file.cc @@ -533,7 +533,10 @@ int SharedFile::RemovePrivateSharing(list> 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); } }