From 4d79316e9e3b10c6a329d195ad593fb0cc9c0aa6 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 22 Jul 2019 16:35:57 +0900 Subject: [PATCH] Fix wrong return value in autofill_item_clone() Change-Id: I07c18117760d710562d7a0e9220863a4eaec2c74 Signed-off-by: Jihoon Kim --- common/autofill_item.c | 2 +- include/autofill_common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/autofill_item.c b/common/autofill_item.c index f90b9cc..8d157af 100644 --- a/common/autofill_item.c +++ b/common/autofill_item.c @@ -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) { diff --git a/include/autofill_common.h b/include/autofill_common.h index 26e7d17..4d0cae2 100644 --- a/include/autofill_common.h +++ b/include/autofill_common.h @@ -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); -- 2.7.4