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 f90b9cc..8d157af 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 26e7d17..4d0cae2 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);