Fix wrong return value in autofill_item_clone() 41/210541/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 22 Jul 2019 07:35:57 +0000 (16:35 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 22 Jul 2019 07:35:57 +0000 (16:35 +0900)
Change-Id: I07c18117760d710562d7a0e9220863a4eaec2c74
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
common/autofill_item.c
include/autofill_common.h

index f90b9ccb4a9556952aabdd0117cf44813f07ee3a..8d157afde63e8f380e3baff9002e760a575fe78f 100644 (file)
@@ -88,7 +88,7 @@ EXPORT_API int autofill_item_clone(autofill_item_h h, autofill_item_h *clone)
     autofill_item_create(&handle);
     if (!handle) {
         LOGW("[ERROR] Failed to create autofill_item handle");
-        return AUTOFILL_ERROR_OPERATION_FAILED;
+        return AUTOFILL_ERROR_OUT_OF_MEMORY;
     }
 
     if (h->id) {
index 26e7d178bb19c2fde0ed86d2c5a6cbdac4f98e2c..4d0cae224329089dee064b0d478eb463ce7281a2 100644 (file)
@@ -193,6 +193,7 @@ int autofill_item_destroy(autofill_item_h it);
  * @return 0 on success, otherwise a negative error value
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #AUTOFILL_ERROR_OUT_OF_MEMORY Out of memory
  */
 int autofill_item_clone(autofill_item_h it, autofill_item_h *clone);