Merge branch 'tizen_5.5' into tizen
[platform/core/uifw/capi-ui-sticker.git] / server / stickerd_data_manager.c
index c731971..f81305d 100644 (file)
@@ -480,7 +480,14 @@ static int _file_copy(const char *src, const char *dest)
 
     memset(buf, '\0', 4096);
     fd = open(src, O_RDONLY);
+    if (fd == -1) {
+        LOGE("Failed to open file (%s) for reading", src);
+    }
+
     n_fd = open(dest, O_WRONLY | O_CREAT | O_TRUNC, 0755);
+    if (n_fd == -1) {
+        LOGE("Failed to open file (%s) for writing", dest);
+    }
 
     if (fd == -1 || n_fd == -1) {
         tmp_err = errno;